BookmarkSubscribeRSS Feed
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");
0 Kudos
1 REPLY 1
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