[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Paints the control to its Canvas using theme services.
Source position: comctrls.pp line 844
protected procedure TTabControl.Paint; virtual; |
Paint is a method used to render the tab control to its canvas. It handles the background and tabs for the control excluding any button decorations. Buttons are handled in a differ component. Paint adjusts the display rectangle in ARect to reserved a single pixel on the edge indicated in the TabPosition property. This avoids drawing a border on the edge where the control is aligned.
Paint uses ThemeServices to get theme elements available for a tab control, and to draw the control to its Canvas using the theme details. A raised 3D frame is drawn around the control. At design-time, the Caption for the control is drawn centered in its display area.
|
Indicates the edge where the tabs for the control are aligned. |
|
|
The text displayed for the control. |
Version 3.2 | Generated 2024-02-25 | Home |