Quote from
Gaev on January 11, 2020, 4:02 am
@vwatson
Is there a way on page load for a listbox to be the focused object with its first item selected?
I set the tab order so the listbox is first and tried FocusObject, but neither do the trick.
Hopefully, the tab order set the ListBox in focus.
If the ListBox object is called ListBox34 and the 'Variable; (to store selected item)' is [ListBox34] ...
SetVar "[ListBox34]" "yourFirstItemHere"
... if this list is not static (i.e. set/changed dynamically at run time) ...
ListBoxGetItem "ListBox34" "1" "[ListBox34]"
@vwatson
Is there a way on page load for a listbox to be the focused object with its first item selected?
I set the tab order so the listbox is first and tried FocusObject, but neither do the trick.
Hopefully, the tab order set the ListBox in focus.
If the ListBox object is called ListBox34 and the 'Variable; (to store selected item)' is [ListBox34] ...
SetVar "[ListBox34]" "yourFirstItemHere"
... if this list is not static (i.e. set/changed dynamically at run time) ...
ListBoxGetItem "ListBox34" "1" "[ListBox34]"
vwatson has reacted to this post.