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

Home » Public Forums » archive » Re: Newline in WIDGET_LABEL
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
Re: Newline in WIDGET_LABEL [message #5892] Mon, 26 February 1996 00:00
Ken Knighton is currently offline  Ken Knighton
Messages: 44
Registered: May 1995
Member
mallozzi@ssl.msfc.nasa.gov wrote:
> Hello,
>
> Is there a way to insert a newline character into a string that is used
> in a WIDGET_LABEL (i.e. make a multi-line label widget)? I tried to use
> the ascii non-printable characters for newline and then backspace, which
> works fine on the terminal, but is ignored in the widget. Surely this
> must be supported in IDL? I saw nothing in ? or the manual...

I think I went on this same quest about a year ago and the answer is
no. If someone else knows better, please post your solution as I'm
sure a lot of people would like to know how to do this.

Perhaps (if applicable) there are some X-windows resources that could
be set to take care of this.

I believe your only solution is to use a column base and multiple
label widgets under that base. You can also use a text widget.

The downside of this is that certain widgets (widget_droplist and
widget_slider) and some compound widgets (i.e. cw_field) use the
title keyword. This is a single label and is already part of another
base. If one wants to have a multi-line title, the title keyword can't
be used, it has to be done as described above and (especially for
compound widgets) it may be hard to get the alignment that you desire.

It would be nice if the VALUE keyword to WIDGET_LABEL took a string
array and placed the strings in a column/row as specified by
ROW/COLUMN keywords to WIDGET_LABEL. On the other hand, it's not
too much of a problem to write a compound widget to do this.

I hope this helps.

Ken Knighton knighton@gav.gat.com knighton@cts.com
General Atomics
San Diego CA
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem with color maps
Next Topic: Widget Title Bar Help

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

Current Time: Wed Oct 08 19:21:50 PDT 2025

Total time taken to generate the page: 0.00576 seconds