ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-mac
tcl-mac
Re: [MACTCL] The 'sometimes buttons don't draw' bug.
by Robert Karen other posts by this author
Mar 8 2007 1:32PM messages near this date
[MACTCL] A Survey on Defect Management Practices in Free/Open Source Software | Re: [MACTCL] The 'sometimes buttons don't draw' bug.
This has always been a sporadic bug for me, but I finally was able to 
strip out
some code that shows it each time. I don't know what a GrafPort or clip 
are but
I don't think they are relevent here. Maybe this helps. In this code if 
you comment
out the line 'grid remove $greaterLessThanEntryFr' line, the button 
labeled 'Next' is
visible. Otherwise, it's not! This is with aqua 8.4.6 on osx 10.2.8.
to run, source the file,
then press the button labeled 'Test'.
in new window there should be 2 buttons, 'back' and 'next'.

Robert Karen

Jim Ingham wrote:

>  Hi, all...
> 
>  I found at least one cause for the mysterious "sometimes one of my  
>  buttons doesn't draw" bug.  We weren't setting the GrafPort to the  
>  port of the window containing the button before we set the clip for  
>  the window.  So every so often (particularly when a button command  
>  was raising a new window or something like that) the GrafPort would  
>  still be set to the old window, and the clip would get set wrong.   
>  That meant the button didn't draw.  However, drawing the first button  
>  would set the GrafPort right a little later, so then all the other  
>  buttons would draw.
> 
>  I checked a fix for this into TOT and the core-8-4-branch.  So for  
>  folks that were seeing this bug, give either of these branches a go,  
>  and tell me if it still shows up.
> 
>  Jim
> 
> 
> 
>  -------------------------------------------------------
>  SF email is sponsored by - The IT Product Guide
>  Read honest & candid reviews on hundreds of IT Products from real users.
>  Discover which products truly live up to the hype. Start reading now.
>  http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>  _______________________________________________
>  Tcl-mac mailing list
>  Tcl-mac@[...].net
>  https://lists.sourceforge.net/lists/listinfo/tcl-mac
> 
> 
Thread:
Robert Karen
Daniel A. Steffen
Robert
Daniel A. Steffen

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved