Source language: Translate to:

Hilight a ListBox Item via Code

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Hilight a ListBox Item via Code

Postby Eduardo Volpi » Fri Feb 07, 2014 11:24 am

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
Eduardo Volpi
User avatar
Eduardo Volpi
 
Posts: 57
Joined: Wed Oct 28, 2009 4:42 pm
Location: São Paulo - Brazil

Re: Hilight a ListBox Item via Code

Postby HPW » Fri Feb 07, 2014 12:36 pm

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
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Hilight a ListBox Item via Code

Postby Eduardo Volpi » Fri Feb 07, 2014 1:36 pm

Works perfectly.

Thank you Hans Peter
Eduardo Volpi
User avatar
Eduardo Volpi
 
Posts: 57
Joined: Wed Oct 28, 2009 4:42 pm
Location: São Paulo - Brazil


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest

cron