Subscribe Bookmark RSS Feed

fix text edit box width

volf

Staff

Joined:

Jun 23, 2011

Hi Jumpers,

As to fix Text edit box width, I put some spaces into Text edit box.

I want to know another way to fix Text edit box width.

regard
Volf.

Message was edited by: volf
3 REPLIES
This thread may help:

http://support.sas.com/forums/thread.jspa?messageID=37505銁
volf

Staff

Joined:

Jun 23, 2011

Thank you David,

Your recommeded article contain to set dimensions of list box. This information is also very useful.

and I hope to know to set dimensions of Text Edit box. Specially, to set Text Edit Box width is strongly required.

regard
pmroz

Super User

Joined:

Jun 23, 2011

This is an old post but I had the same issue and figured it out. You can set the width of a text edit box in a New Dialog window as shown in the following example.

win = New Window( "Example",
text = Text Edit Box( "Example Text" )
);
text << Set Width( 200 );


This is taken from JMP 9, Help > Displaybox Scripting > Text Edit Box > Set Width.

I put the width inside the dialog box as follows, which is a bit easier to follow if you have a lot of things in the dialog box:

win = New Window( "Example",
text = Text Edit Box( "Example Text", << Set Width( 200 ))
);

Regards,
Peter