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-mac lists.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-mac lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-mac
|