Re: How to pick columns in a base widget? [message #31747] |
Thu, 15 August 2002 11:15 |
Don J Lindler
Messages: 19 Registered: April 2001
|
Junior Member |
|
|
"Luciano" <lucianor@sinectis.com.ar> wrote in message
news:902633c3.0208150817.37f97e91@posting.google.com...
> Hello,
>
> I have a base widget with a 3 column structure:
> tlb = WIDGET_BASE(column=3)
>
> is there an easy way to choose in which of the 3 columns the child
> widgets will appear? I don't want IDL to pick, I want to do it myself!
> For example, how do I put a button widget in the column of the middle?
>
> Thanks in adavance.
>
> Luciano.
I think you want to use something like this:
tlb = widget_base(/row)
base1 = widget_base(tlb,/column) ;first column
base2 = widget_base(tlb,/column) ;second column
base3 = widget_base(tlb,/column) ;third column
Now add buttons, etc. to base1, base2, or base3 to put them into the columns
you want.
The top level base is a row of columns.
Don
|
|
|
Re: How to pick columns in a base widget? [message #31752 is a reply to message #31747] |
Thu, 15 August 2002 09:27  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Luciano (lucianor@sinectis.com.ar) writes:
> I have a base widget with a 3 column structure:
> tlb = WIDGET_BASE(column=3)
>
> is there an easy way to choose in which of the 3 columns the child
> widgets will appear? I don't want IDL to pick, I want to do it myself!
> For example, how do I put a button widget in the column of the middle?
Put three column=1 bases in your top-level base.
Then, add your button to the second of the column bases. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|