Sign in Join
FPDoc Onlineexperiment

TCustomCheckListBox.CheckAll procedure

Member of TCustomCheckListBoxpublicIn unit CheckLst

Sets the specified values for State, AllowGrayed, and ItemEnabled for all Items in Control.

Declaration

pascal
procedure CheckAll(AState: TCheckBoxState; aAllowGrayed: Boolean=True; 
 aAllowDisabled: Boolean=True)

Description

CheckAll is a procedure used to set the specified values for the State, AllowGrayed, and ItemEnabled properties for all Items in the control. The default value for both aAllowGrayed and aAllowDisabled is True. CheckAll iterates over the entries in the Items property and updates the State property to match the value in the arguments to the method.

Use Checked to set a specific item to a specified Boolean checked state value. Use State to get or set the check box state as a TCheckBoxState value. Use ItemEnabled to get or set the enabled state for a specific entry in Items.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.