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
Carriage Returns in IDL Text Widget [message #25892] Wed, 25 July 2001 14:16 Go to previous message
Dan Fletcher is currently offline  Dan Fletcher
Messages: 4
Registered: August 1999
Junior Member
Hello:

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)

and here's the code I'm using to write to it:

TextString='File: '+EEGFileName + STRING(13B)+STRING(10B)

WIDGET_CONTROL,widget_info(Event.top,
FIND_BY_UNAME='WID_TEXT_FILEPROPS'),SET_VALUE=TextString,/AP PEND

TextString="Sampling Rate:
"+STRING(EEGFile.DataBlockSampleRate(0,0))+" Hz"

WIDGET_CONTROL,widget_info(Event.top,
FIND_BY_UNAME='WID_TEXT_FILEPROPS'),SET_VALUE=TextString,/AP PEND


Any suggestions would be greatly appreciated. This is driving me crazy!
[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: Sat Oct 11 15:09:37 PDT 2025

Total time taken to generate the page: 1.36276 seconds