You can set the focus on a specific User Interface Control Item, RolloutFloater or Rollout using
setFocus (<RolloutControl>|<RolloutFloater>|<Rollout>)
EXAMPLE: |
rollout testFocus "Test Focus" ( edittext text1 "Test" edittext text2 "Focus" ) createDialog testFocus 200 100 setFocus testFocus.text2 -- the second text field gets focus! |
In 3ds Max 6 and higher,
SetFocus() can be used to set focus on ActiveX controls, too.