Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MultiSelect ListBox
Message
From
17/02/2001 13:37:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
MultiSelect ListBox
Miscellaneous
Thread ID:
00477006
Message ID:
00477006
Views:
65
Hi!

I have a ListBox with MultiSelect = .T.
and in the Click event of a CommandButton I loop through all Items and Select them.

*-- Start of Command1.Click
Local lnCnt

for lnCnt = 1 to ThisForm.List1.ListCount
ThisForm.List1.Selected(lnCnt) = .T.
next

*-- End of Command1.Click

This works fine and selects/highlights all the Items in the ListBox (when I click the CommandButton) but as soon as I Click on the ScrollBar (to scroll Up/Down) of that ListBox all the Items become unselected (HighLighting is removed) I don't want that to happen. The user should be able to scroll up and or down without unselecting the Items in the ListBox.

I not sure if this is a bug or the normal behaviour of a MultiSelect List Box.

Thanks.

Sarosh
Next
Reply
Map
View

Click here to load this message in the networking platform