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

Home » Public Forums » archive » help with text widget...
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
help with text widget... [message #47398] Thu, 09 February 2006 18:59
Steve[3] is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Slowdown when creating/destroying Object Graphics components
Next Topic: Re: help with text widget...

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

Current Time: Wed Oct 08 19:42:30 PDT 2025

Total time taken to generate the page: 0.00569 seconds