Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
ListBox 's unselectable items, how to count?
Versions des environnements
Hi,
I have a multi-columns ListBox, RowSourceType = 0 and ColumnLine = .T. and it can display 5 items with its height. In order to always have the column lines go from the top to the bottom, I have, in my code the below:
DO WHILE MyListBox.ListCount < 5
MyListBox.AddItem("\]" + CHR(160))
ENDDO
Just to make sure there will be at least 5 items on the list, fewer than that, the list is padded at the end with unselectable items. Am I doing it the right way... or should I ask, is there a better way to get what I want?
Btw,
After a list is fully up, is there any way I can check its item to determine whether it is selectable or not? I mean is there a generic way to count the unselected items on a listbox?
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