X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 Jan 2020 11:40 AM by  Wayne Rigby
How to create a multi-line text widget?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
02 Nov 2005 01:36 PM
    I try to use the following code to create a text widget with multi-line text: WID_TEXT = Widget_Text(WID_BASE, SET_VALUE=['Line 1', 'Line 2', 'Line 3'] But it turned out to display 'Line 1Line 2Line 3' instead of Line 1 Line 2 Line 3 The IDL version is 6.2 Thank you!

    Wayne Rigby



    New Member


    Posts:1
    New Member


    --
    27 Jan 2020 11:40 AM
    I know this question is ancient, but I just spent an hour struggling with this. The trick is to supply a string array for the VALUE keyword and to set the YSIZE keyword to the number of elements in string array. (YSIZE is in units of text lines.) You'd think this would be the default for string arrays, but it isn't..
    You are not authorized to post a reply.