cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Get the free JMP Student Edition for qualified students and instructors at degree granting institutions.
Choose Language Hide Translation Bar
View Original Published Thread

How can the following JSL be modified to adjust the width of the text edit box to 500 pixels?

lala
Level VIII

Hello!

ex = New Window( "",
	<<modal,     
	Panel Box( "", H List Box( teb = Text Edit Box() ) ),
	Panel Box( "", H List Box( Button Box( "OK", ng = teb << get text ) ) )
);

2023-04-21_13-33-33.png

1 ACCEPTED SOLUTION

Accepted Solutions


回复: How can the following JSL be modified to adjust the width of the text edit box to 500 pixels?

Looks like a simple error: the Text Edit Box isn't assigned to the variable teb. Try this:

Names Default to Here( 1 );ex = New Window( "",<< modal, Border Box( "", teb = Text Edit Box("", << Set Width( 500 ) ) ),Panel Box( "", H List Box( Button Box( "OK", ng = teb << get text ) ) ));

 

Ross Metusalem
JMP Academic Ambassador

View solution in original post

2 REPLIES 2
lala
Level VIII


回复: How can the following JSL be modified to adjust the width of the text edit box to 500 pixels?

I tried to do this, but the variable ng couldn't get the input edit text content

2023-04-21_13-36-21.png


回复: How can the following JSL be modified to adjust the width of the text edit box to 500 pixels?

Looks like a simple error: the Text Edit Box isn't assigned to the variable teb. Try this:

Names Default to Here( 1 );ex = New Window( "",<< modal, Border Box( "", teb = Text Edit Box("", << Set Width( 500 ) ) ),Panel Box( "", H List Box( Button Box( "OK", ng = teb << get text ) ) ));

 

Ross Metusalem
JMP Academic Ambassador