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

Home » Public Forums » archive » Re: WIDGET_LABEL query.
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 query. [message #61269 is a reply to message #61267] Thu, 10 July 2008 01:44 Go to previous message
biophys is currently offline  biophys
Messages: 68
Registered: July 2004
Member
The label widget does not seem to understand embedded formatting.
However, I found the string() function very helpful. The following
code works for me.:)

mylabel="1stline"+string(byte(13))+"2ndline"
widget_control, label_id, set_value=mylabel

cheers,
bp

On Jul 9, 11:42 pm, Gaurav <selfishgau...@gmail.com> wrote:
> Hi all,
>
> Is it really (I mean really REAL, VERIFIABLE, UNDENIABLE etc.) true
> that one cannot accomodate more than one line of text on a
> WIDGET_LABEL. Curiously, I never had the use to put multiple line of
> text on a label ere now. Today I did, and I was surprized to learn
> that it is not so (newline characters do not work).
>
> So, what does one do when one needs to display information on a base
> that may span many number of lines. I could have multiple labels, but
> then I do not always know how many lines I am going to need. I could
> do that in a WIDGET_TEXT with the sensitivity turned off: but that
> would not quite look like a label does(or does not-for that matter). I
> mean, what is the point of having a large label? Just to put text in
> large fonts? I found a very old post(dated sometime in 1996)
> confirming this inability.
>
> I would like to hear confirmation from the present day gods of IDL
> that things have not changed since. I would also love to hear from the
> powers-that-be at IDL if they can condescend and vouchsafe this
> feature for WIDGET_LABEL.Or is there a workaround, like I have always
> found from the very helpful people in this group.
>
> Thanking you,
> Gaurav
>
> Or is there a workaround, like I have always found from the very
> helpful people in this group.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Random windows VM errors
Next Topic: Re: animated iplots

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

Current Time: Thu Oct 09 20:42:53 PDT 2025

Total time taken to generate the page: 1.44267 seconds