comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: widget_base and windows position
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: widget_base and windows position [message #42057 is a reply to message #42055] Mon, 20 December 2004 13:54 Go to previous message
Benjamin Hornberger is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: widget_base and windows position
Next Topic: Re: Widgets for dummies?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 07:52:18 PDT 2025

Total time taken to generate the page: 1.28130 seconds