General information
Category:
Forms & Form designer
Ali,
Since disabled items have a different forecolor property (assuming it hasn't been changed to the same value as the enabled items) from an enabled one, perhaps you can capture the value of the DisabledItemForeColor for the combo and then iterate through the list to determine which items are disabled based on this property.
LOCAL lnColor, i
lnColor = Combo.DisabledItemForeColor
* Unchecked code
FOR i = 1 TO Combo.ListCount
IF Combo.List[i].ItemForeColor == lnColor && Reflects display order
* Item disabled
ELSE
* Item enabled
ENDIF
ENDFOR
Hope this helps
John
Previous
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