help with text widget... [message #47398] |
Thu, 09 February 2006 18:59 |
Steve[3]
Messages: 7 Registered: January 2006
|
Junior Member |
|
|
I'm just starting to learn how to use widgets, and am having a little
trouble getting a text widget to display properly. I am trying to
avoid using absolute sizing, and would prefer to let IDL size the
widget based on the base it's in...
If I use:
base=widget_base(column=1)
text=widget_text(base, "line1 of text")
I get a nice single line output...
However, what I want is to have a widget that is blank until I need to
print to it,
then have it print
Line 1 of text
Line 2 of text
Line 3 of text
inside the widget. I'd like the blank initial widget to be sized
correctly to handle 3 lines of text, without actually having any text
displayed, or without having the widget change size. Also, as I noted
before, I would like to avoid specifying the size of the widget in
absolute terms (i.e.# pixels), but saying it "should be 3 lines high"
would be great...
An acceptable solution (although not as good as the above) would be to
intially print the lines when the wiget is created. However, I can't
even get this to work. If I use newline characters, these simply print
on the line, and the result is still just a single line.
Any help would be appreciated...
Thanks.
-Steve
|
|
|