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

Home » Public Forums » archive » Re: widget_label with multiple lines
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: widget_label with multiple lines [message #54839 is a reply to message #54789] Tue, 17 July 2007 12:32 Go to previous message
Doug Edmundson is currently offline  Doug Edmundson
Messages: 58
Registered: November 2005
Member
bill.dman@gmail.com wrote:
> On Jul 13, 1:47 pm, JD Smith <jdsm...@as.arizona.edu> wrote:
>> The following produces a multi-line widget label under Unix and OSX, but
>> not Windows:
>>
>> b=widget_base(/ROW)
>> l=widget_label(b,VALUE=string(replicate('test',6)+string(10b ),FORMAT='(6A)'))
>> widget_control, b,/realize
>>
>> Would string([13b,10b]) work under Windows? If not, any other
>> recommendation for a multi-line label?
>>
>> JD
>
> It unattractive, but supplying YSIZE to widget_label() works in
> windows. The trouble is the UNITS
> keyword doesn't offer lines as an option, just pixels, centimeters,
> and inches.
>

For what it's worth, WIDGET_INFO's STRING_SIZE keyword will return the
width and height of a string using either the widget's font or a
specified font. The widget's padding is not included, but
ascending/descending should be.

Doug
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: error in demo
Next Topic: moving an image before another

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

Current Time: Sat Oct 11 06:52:09 PDT 2025

Total time taken to generate the page: 0.55795 seconds