Vcl.CheckLst.TCheckListBox.ItemEnabled
Delphi
property ItemEnabled[Index: Integer]: Boolean read GetItemEnabled write SetItemEnabled;
C++
__property bool ItemEnabled[int Index] = {read=GetItemEnabled, write=SetItemEnabled};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.CheckLst.pas Vcl.CheckLst.hpp |
Vcl.CheckLst | TCheckListBox |
Description
Enables or disables individual items in the list.
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.
See Also
Code Examples