Sign in Join
FPDoc Onlineexperiment

TTabControl.Paint procedure

Member of TTabControlprotectedIn unit ComCtrls

Paints the control to its Canvas using theme services.

Declaration

pascal
procedure Paint; virtual

Description

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.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.