[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Draws the control to its Canvas using highlighting, drag images, and theme details.
Source position: comctrls.pp line 4090
public procedure TCustomHeaderControl.Paint; override; |
Paint is an overridden method in TCustomHeaderControl used to draw the control to its Canvas.
Paint calls the inherited method on entry to signal the OnPaint event handler (when assigned). The display rectangle is updated to reflect the current Width and Height for the control.
Paint iterates over the header sections defined in the Sections property, and calls PaintSection to render each one. If all sections fit within the control display area without scrolling, theme services are used to draw the control to the control to its Canvas.
Paint handles configuring the Canvas and drawing the preview when a section drag operation is in effect.
See PaintSection for more information about the actions performed to draw an individual header section for the control.
|
Implements the default handler used to draw the control. |
Version 4.0 | Generated 2025-05-03 | Home |