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

Home » Public Forums » archive » Re: YSIZE of widget_text
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: YSIZE of widget_text [message #38028] Tue, 17 February 2004 06:23 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Nuno Oliveira writes:

> If have a widget text which number of lines I want to be variable, how
> do I do? If I don't define it (defining only src_ysize), idl assumes
> ysize=1 and puts an array of strings in a single line! I can set ysize
> as a number so big I never expect to need to use those lines, but is
> there other way?

Don't you want the Y size to be equal to the number
of elements in your string array?

Widget_Control, textID, YSize=N_Elements(myStrings)

You will want to almost *always* avoid setting screen
sizes. Nothing but woe ever comes from it. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Previous Topic: Re: array multiplying (for a change)
Next Topic: Re: YSIZE of widget_list

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

Current Time: Fri Oct 10 05:35:41 PDT 2025

Total time taken to generate the page: 0.96171 seconds