BookmarkSubscribe
Choose Language Hide Translation Bar
Highlighted
vince_faller
Super User

Can't set text for a text edit box if it has focus

Is there a way to lose focus from within a script?

 

Names default to here(1);
new window("Test", 
	teb = texteditbox("", <<Set Width(250))
);

teb << Set Text("Something");

//now click on the text edit box
//teb << Remove Focus
teb << Set Text("Something Else");
Vince Faller - Predictum
0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
julian
Staff

Re: Can't set text for a text edit box if it has focus

Hi @vince_faller,

<<Remove Focus won't interrupt text entry, but I've had success by hiding then showing the edit box in one step:

teb << Hide(1) << Hide(0)

@julian 

2 REPLIES 2
julian
Staff

Re: Can't set text for a text edit box if it has focus

Hi @vince_faller,

<<Remove Focus won't interrupt text entry, but I've had success by hiding then showing the edit box in one step:

teb << Hide(1) << Hide(0)

@julian 

Jeff_Perkinson
Community Manager Community Manager

Re: Can't set text for a text edit box if it has focus

Looks like this oddity will be improved in JMP 15. Thanks for letting us know.
-Jeff