General information
Category:
Coding, syntax & commands
Title:
ListBox 's unselectable items, how to count?
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?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only