[Overview][Types][Classes][Procedures and functions][Index] |
Adjusts the drawing area for the specified item, and renders it on the control.
Source position: checklst.pas line 62
protected procedure TCustomCheckListBox.DrawItem( |
AIndex: Integer; |
ARect: TRect; |
State: TOwnerDrawState |
); override; |
AIndex |
|
Ordinal position in Items for the entry drawn in the method. |
ARect |
|
TRectangle with the drawing area for the item. |
State |
|
TOwnerDrawState for Items in the control. |
DrawItem is an overridden procedure used to render the item specified in AIndex to the drawing area in ARect. DrawItem ensures that sufficient space is reserved for the check box drawn for an item on the list box.
The Header property determines whether a check box is required for the item, and GetCheckWidth is called to get the width for the check box when needed. ARect is updated to increase or decrease the horizontal boundary depending on the value in UseRightToLeftAlignment; The right boundary is decremented for RTL, and the left boundary is incremented for LTR.
DrawItem calls the inherited method to render the item on the list box for the control.
|
Gets the width required for the check box drawn for Items on the control. |
|
|
The list of all items defined in the control. |
Version 4.0 | Generated 2025-05-03 | Home |