List Info

Thread: Re: The 'sometimes buttons don't draw' bug.




Re: The 'sometimes buttons don't draw' bug.
country flaguser name
United States
2007-03-08 15:46:24
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=1439
6&op=click
> _______________________________________________
> Tcl-mac mailing list
> Tcl-maclists.sourceforge.net
> 
https://lists.sourceforge.net/lists/listinfo/tcl-mac
>
>

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-mac mailing list
tcl-maclists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/tcl-mac

  
Re: The 'sometimes buttons don't draw' bug.
country flaguser name
Switzerland
2007-03-08 15:56:52
Robert,

On 08/03/2007, at 22:46, Robert Karen wrote:

>  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.

I cannot reproduce this problem from your script with the
current tip  
of core-8-4-branch running on 10.4.8, so this bug has
probably been  
fixed sometime since 8.4.6; if you can, use a more recent
TkAqua,  
8.4.6 is quite old.

Cheers,

Daniel

-- 
** Daniel A. Steffen        Dept. of Mathematics  **
** Macquarie University     NSW 2109 Australia    **



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-mac mailing list
tcl-maclists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/tcl-mac

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )