Tk Source Code

View Ticket
Login
2011-01-18
00:20 Closed ticket [685777ffff]: 'missing buttons' on MacOSX plus 6 other changes artifact: 6c9906ebb0 user: wordtech
2005-01-24
14:10 Ticket [685777ffff]: 4 changes artifact: 68f4712872 user: trott13
2005-01-22
01:49 Ticket [685777ffff]: 4 changes artifact: d73f5c8500 user: robert_karen
2004-03-31
06:19 Ticket [685777ffff]: 1 change artifact: d25e048fcc user: dgp
2003-02-25
16:44 Ticket [685777ffff]: 1 change artifact: bcbab0b3ef user: dkf
2003-02-13
07:36 New ticket [685777ffff]. artifact: 69971223ae user: nobody

Ticket UUID: 685777
Title: 'missing buttons' on MacOSX
Type: Bug Version: obsolete: 8.4.1
Submitter: nobody Created on: 2003-02-13 07:36:30
Subsystem: 08. [(label)frame] and [toplevel] Assigned To: das
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2011-01-18 00:20:50
Resolution: None Closed By: wordtech
    Closed on: 2011-01-17 17:20:50
Description:
Environment: Max OS X (10.2, gcc 3.1), Tcl/Tk 8.4.1 
The following script: 
--------------------------- 
> proc gen {w} { 
>   button $w.b1 -text b1 
>   button $w.b2 -text b2 
>   grid $w.b1 $w.b2 
> } 
>  
> toplevel .t 
> gen .t 
> gen "" 
--------------------------- 
will demostrate the problem.  
What I expect to see are 2 toplevels 
with two buttons (b1 and b2) each. 
 
If run, the ".t" toplevel shows 
both buttons while "." only shows ".b1". 
 
Clicking on ".t" or the empty space of ".b1" draws it finally. 
Some things I found about it are: 
 
1.) at least two toplevels are needed. Has this something to do with 
    the (not really working) "focus" command? 
  
2.) only the last "gridded button" is affected. 
   if you change to "labels" or use "pack", everything works fine. 
 
3.) You may change the width of one of the two buttons and find 
    them "clipped" partially; so I suspect this has something 
    to do with the clipping setup code inherited from the "old" 
    MacTcl
User Comments: wordtech added on 2011-01-18 00:20:50:

allow_comments - 1

trott13 added on 2005-01-24 14:10:32:
Logged In: YES 
user_id=909095

I have not checked this again; we dropped MacOS-X 
entirely as platform due to this (and a bunch of 
other) bugs we can't resolve fast enougth. 
 
But... 
There where 2 suspect I had:  
The buttons are both drawn, but you don't seen them 
both (completely) because one (or part of one) is clipped 
away by a wrong clipping region set. 
And second: 
The fact, that there is a separate drawing thread. 
This bug could have something to do with synchronizing 
the drawing with the clipping part. 
 
You my suspects....

robert_karen added on 2005-01-22 01:49:57:
Logged In: YES 
user_id=489462

this is same as bug #894561, no? I have same behavior
but it is sporadic and I can't reproduce it right now with
your script although I have seen it (today) with my
larger application. this is also on 8.4.1. any ideas?