cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
lala
Level VII

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

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 VII

回复: 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