Notifications
Clear all

[Closed] Are these 2 commands possible with edittext (or dotnet textbox) boxes?

EDIT: I meant to say are EITHER of these possible:

  1. Do something when you hit enter (after you have written in it)?

    1. Select a specific editbox automatically (move the cursor there)? **By a function.

    Thanks.

2 Replies

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
(@gumnut)
Joined: 11 months ago

Posts: 0

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.