RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCheckListBox.ItemEnabled Property

Enables or disables individual items in the list.

Pascal
property ItemEnabled [Index: Integer]: Boolean;
C++
__property Boolean ItemEnabled[int Index];

Use ItemEnabled to enable or disable individual list items without using the cbGrayed state. Using ItemEnabled allows the list box to display check marks for items with a state of cbChecked while still graying the item and preventing the user from changing its state. 

For each member of the Items array, ItemEnabled is true if the user can change the state of the item. Enabled items have a state of cbChecked or cbUnchecked.  

ItemEnabled is false when State =cbGrayed or when the item has been explicitly disabled using this property. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!