BLT: the instruction order is surprisingly relevant ( BLT 2.4 tk 8.0.5 windows NT) 
Author Message
 BLT: the instruction order is surprisingly relevant ( BLT 2.4 tk 8.0.5 windows NT)

the following script fails: red background visible.

package require BLT
button .b
frame .f -bg red
blt::table .f .b 0,0
blt::table .  .f 0,0

this one suceeds: button shows!

package require BLT
frame .f -bg red
button .b
blt::table .f .b 0,0
blt::table .  .f 0,0

Claude Fleurey

PS: The "pack" instruction doesn't implement this feature.



Sun, 08 Sep 2002 03:00:00 GMT  
 BLT: the instruction order is surprisingly relevant ( BLT 2.4 tk 8.0.5 windows NT)

Quote:

> the following script fails: red background visible.

> package require BLT
> button .b
> frame .f -bg red
> blt::table .f .b 0,0
> blt::table .  .f 0,0

> this one suceeds: button shows!

> package require BLT
> frame .f -bg red
> button .b
> blt::table .f .b 0,0
> blt::table .  .f 0,0

Of course it is relevant, the order determines th Z-order, the last widget
created is on top of the others which have been created. If .b is a child
of .f then create it as .f.b, otherwise make sure that the button is on top
of .f by either creating it after or using [raise] or [lower].

Try the same thing using [grid] and see if that works the same way.



Sun, 08 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. BLT with TCL/TK 8.4.9 and Python 2.4

2. BLT 2.4 && Tcl/Tk 8.1

3. building BLT 2.4 for multi-threading on windows

4. ANNOUNCE: BLT busy for Windows, Tk 8.0, BLT 8.0 unofficial

5. BLT 2.4 on Mac OS X help ...

6. BLT 2.4 - 8.4 Blt_ZoomStack problem

7. BLT 2.4 and the Img Library

8. memory leak in BLT 2.4 using markers ?

9. Copy Paste with Graph (blt 2.4) widget

10. BLT (ver 2.4) -- bgexec bug on Win 98

11. BLT 2.4 Tabset anomaly

12. BLT Binary 2.4 for NT

 

 
Powered by phpBB® Forum Software