Link to home
Start Free TrialLog in
Avatar of skynergy
skynergy

asked on

Listbox Itemindex and Selected Listbox Item

I am using a Delphi 5 TListBox. When I have a couple of Listbox Items and set the ItemIndex at run time to a valid item then you can see a grey selection box around the item. How can I however get the blue selection box appear around that item? So in other words if I use my mouse and select one item it has a blue selection box around the item. I want to do this at run time.

Thanx
Magnus
ASKER CERTIFIED SOLUTION
Avatar of Motaz
Motaz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of raidos
raidos

If you need multiselect to be enabled, then I beleive, you could use ListBox.Selected[Index] := TRUE / FALSE

Regards
//raidos