widget_base and windows position [message #42058] |
Mon, 20 December 2004 13:17 |
Francois L.
Messages: 19 Registered: December 2004
|
Junior Member |
|
|
Hello,
I want to draw a Top Level Base containing three sub-windows like this:
Window 1, large, on the top.
Window 2, medium, bellow window 1.
Window 3, small, right of window 2 and bellow window 1.
With the following code, windows 2 and 3 are on top of window 1:
------------------------------------------------------------ ------
tlb = widget_base(title='top level base',/row)
baseLeft = widget_base(tlb, /column)
baseRight = widget_base(tlb, /column)
BaseLeftBottom = widget_base(baseLeft, /row)
w1 = widget_draw(BaseLeft, xsize=512, ysize=512)
w3 = widget_draw(BaseLeftBottom, xsize=256, ysize=256)
w4 = widget_draw(BaseLeftBottom, xsize=128, ysize=128)
widget_control, tlb, /realize
------------------------------------------------------------ -----
What would be the correct code for placing window 1 above ?
Thank you,
Francois.
|
|
|