Set focus of display tree (new window) to text edit box
Jun 25, 2013 2:13 PM(1295 views)
Hi, I would like to be able to make the text in a text edit box highlighted via script. I'd like to be able to type in a string, hit enter, have the script store that value and do its thing, then put the focus back on the text edit box for further entry. Below is a stripped down example of what i'm trying to do.
Names Default To Here(1);
myText = teb << get text();
teb << set selected(); // <-- here's where i'm trying to select the text edit box.
win =new window("title",
teb =text edit box(""),
teb << set script(Fn(1)); // runs the "Fn" function when the enter key is pressed within the text edit box.
Thanks. That solves part of the problem, which was bringing focus back to the edit box after clicking on the button box. Do you know how to bring focus back to the edit box after entering in data and hitting 'enter' key?