itemEnabled
Type: Boolean array
Availability: Read or write at run time only
The itemEnabled property allows individual items in a ListBox or ComboBox control to be disabled or enabled.
The itemEnabled property contains a reference to an array of
By default, each entry in a list is enabled. The entries must be specifically disabled from logic. An item that is disabled has no impact on the logic that can be performed against it, only on the user actions for that entry in a list box or combo box.
A disabled entry does not respond to mouse or keyboard actions, and its text appears grayed. No events are sent when a disabled item is clicked. Using the arrow keys to move between entries in the list skips over disabled items.
The code fragment in the following example shows the use of the itemEnabled property.
while count <= listbox.listCount do listbox.itemEnabled[count] := true; count := count + 1; endwhile;