Home »
Public Forums »
archive »
Re: Form building in IDL.
Re: Form building in IDL. [message #32460] |
Mon, 07 October 2002 17:44 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Joe (foosej@hotmail.com) writes:
> I am trying to do something which seems like it should be simple, but I am
> having problems doing it in IDL. I'm developing a widget which contains 2
> columns. The left column will have a bunch of widget labels and the right
> column will have an equal number of text widgets. The right column will be
> significantly wider. I want each label to line-up vertically with it's text
> widget and all the labels to be left justifed to each other and all the text
> widgets to be left justified to each other. I also want each column to only
> be as wide as the width of the longest widget in it's column. After playing
> with various combinations of base widgets and options I have not been able
> to produce this. I was hoping the GRID_LAYOUT option would work, but this
> causes both the width and height to be the same for every cell. Is there
> some option like GRID_LAYOUT which only operates on height and not width?
>
> Any help greatly appreciated.
You might want to have a look at FSC_FIELD. One of the purposes
of this compound widget is to line labels and text fields up
in exactly the way you describe. Compile the program by hand,
and then run the Example program at the end to see how this
works.
http://www.dfanning.com/programs/fsc_field.pro
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
|
|
|
Current Time: Fri Oct 10 16:23:36 PDT 2025
Total time taken to generate the page: 1.04363 seconds