Re: widget_base and windows position [message #42057 is a reply to message #42055] |
Mon, 20 December 2004 13:54  |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
Francois L. wrote:
> 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.
>
>
How about something like:
tlb = widget_base(/col)
upper = widget_base(tlb)
lower = widget_base(tlb, col=2)
w1 = widget_draw(upper)
w2 = widget_draw(lower)
w3 = widget_draw(lower)
Benjamin
|
|
|