Notifications
Clear all
[Closed] Are these 2 commands possible with edittext (or dotnet textbox) boxes?
Jan 01, 2016 1:16 pm
EDIT: I meant to say are EITHER of these possible:
-
Do something when you hit enter (after you have written in it)?
- Select a specific editbox automatically (move the cursor there)? **By a function.
Thanks.
2 Replies
Jan 01, 2016 1:16 pm
it’s easy to find the answer in the mxs help…
try(destroydialog dialog) catch()
rollout dialog "Textbox" width:200
(
edittext text1_tb width:180 align:#right offset:[4,0]
edittext text2_tb width:180 align:#right offset:[4,0]
on text1_tb entered text do setfocus text2_tb
on text2_tb entered text do setfocus text1_tb
)
createdialog dialog
1 Reply
Thanks Denis.
For some reason I thought both would not have been standard.
I think it may have taken a while for me to find setfocus without seeing it first also…
Thanks again.