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

Home » Public Forums » archive » Carriage Returns in IDL Text Widget
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: Carriage Returns in IDL Text Widget [message #25971 is a reply to message #25892] Thu, 26 July 2001 10:55 Go to previous message
Andy Herger is currently offline  Andy Herger
Messages: 1
Registered: July 2001
Junior Member
test

Dan Fletcher wrote:

> Thanks for the replies! The widget was indeed set to one character high
> (YSIZE=1). The odd thing is that I set this up in the GUI Builder and it
> doesn't appear to allow me to set the YSIZE to anything BUT 1 (the option in
> the properties dialog is grayed out and 1 is entered). So I guess I just have
> to remember to go back and set that value anytime I change anything in GUI
> Builder and recreate the *.pro file.
>
> Thanks again for your help!
> Dan
>
> Alex Schuster wrote:
>
>> Dan Fletcher wrote:
>>
>>> I've searched through Google groups and seen this question asked a
>>> number of times, but I haven't seen an answer anywhere and I'm hoping
>>> someone out there can help me. I have a Text Widget and want to write
>>> some info to it. I can't seem to send it a carriage return, so all of
>>> the text winds up on one line and out of the space supplied by the
>>> widget.
>>>
>>> Here's the widget definition (I've also tried it with the /WRAP keyword
>>> and have had the same problem).
>>>
>>> WID_TEXT_FILEPROPS = Widget_Text(WID_BASE_LEFT, $
>>> UNAME='WID_TEXT_FILEPROPS' ,XOFFSET=8 ,YOFFSET=21 $
>>> ,SCR_XSIZE=168 ,SCR_YSIZE=163 ,XSIZE=20 ,YSIZE=1)
>> ^^^^^^^
>> Well, your text widget has only one line, is that really what you
>> intended? If yes, skip the APPEND keyword, and you'll always see the
>> last string you sent to the widget. Or you can increase the YSIZE, then,
>> with the APPEND keyword, the new strings start at a new line.
>>
>>> TextString='File: '+EEGFileName + STRING(13B)+STRING(10B)
>>
>> I think IDL doesn't care about CR+LF here. To add multiple lines, just
>> use a STRARR, or put the single strings there one after another, with
>> the /append keyword.
>>
>> Alex
>> --
>> Alex Schuster Wonko@planet-interkom.de
>> alex@pet.mpin-koeln.mpg.de

--

Andy Herger
Technical Computing Services
Space Science & Engineering Center, Room 439
608-263-8185
andy.herger@ssec.wisc.edu
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Carriage Returns in IDL Text Widget
Next Topic: Filling in system plot symbols

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

Current Time: Sun Oct 12 05:36:04 PDT 2025

Total time taken to generate the page: 0.40118 seconds