Information générale
Titre:
MultiSelect ListBox
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement