Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MultiSelect ListBox
Message
De
17/02/2001 13:37:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
MultiSelect ListBox
Divers
Thread ID:
00477006
Message ID:
00477006
Vues:
64
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
Fil
Voir

Click here to load this message in the networking platform