cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
lala
Level VIII

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 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