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

Home » Public Forums » archive » sizing cw_field or aligning fsc_field
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
sizing cw_field or aligning fsc_field [message #25458] Wed, 13 June 2001 10:38
nischan is currently offline  nischan
Messages: 5
Registered: October 1996
Junior Member
Hello all,

I am trying to build a GUI with several text input boxes arranged in a column,
with the labels above the text box. I'd like all of the boxes to be the same
size, regardless of the length of the label above it. I was also hoping to be
lazy and only write one line to define each box (I have a bunch of them). In
other words, I know I can do it like this:
widget_label(base, value='Box 1')
widget_text(base, xsize=5, ysize=1)

but I was hoping for something like this:
cw_field(base, title='Box 1', xsize=5, ysize=1, /column)

but when I use that, the size of the box is tied to the length of the title,
no matter what I set xsize to. I also tried using David Fannings fsc_field
function:
fsc_field(base, title='Box 1', xsize=5, ysize=1, /column)

which does size the box correctly (and *looks* editable, a distinct improvement
over cw_field...) but it centers the box under the label. Is there a way to
left align the box under the label? (I tried setting base_align_left in the
base widget definition, as well as setting the label_left flag, but neither
helped).

Or, is there a way to get cw_field to let me choose the box size?

thank you,
melissa
nischan@ll.mit.edu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Graphics Card/GL
Next Topic: Re: sizing cw_field or aligning fsc_field

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

Current Time: Wed Oct 08 16:01:25 PDT 2025

Total time taken to generate the page: 0.00977 seconds