Page 1 of 1

Hilight a ListBox Item via Code

PostPosted: Fri Feb 07, 2014 11:24 am
by Eduardo Volpi
Is there a way to hilight a ListBox item by code, without clicking on it?
I could not figure out how to do it, if that is possible.

Thanks

Re: Hilight a ListBox Item via Code

PostPosted: Fri Feb 07, 2014 12:36 pm
by HPW
The Listbox has this items and is configured that the variable contains the text:
Test1
Test2
Test3


In another button use this:

Code: Select all
SetVar "[ListBox1]" "Test2"


And Test2 gets highlighted.

Regards

Re: Hilight a ListBox Item via Code

PostPosted: Fri Feb 07, 2014 1:36 pm
by Eduardo Volpi
Works perfectly.

Thank you Hans Peter