Sign in Join
FPDoc Onlineexperiment

TCustomGrid.DrawBorder procedure

Member of TCustomGridprotectedIn unit Grids

Draws the border for the grid control.

Declaration

pascal
procedure DrawBorder

Description

DrawBorder is used to draw the border around the grid using the client rectangle for the control. No actions are performed in the method when Flat is set to False or BorderStyle has a value other than bsSingle.

DrawBorder ensures that the Pen color in Canvas is updated to use the value in BorderColor. The width for the Pen is set to 1 pixel for the drawing operation. Drawing methods in Canvas are called to draw the borders on the Left, Right, Top, and Bottom edges for the control.

DrawBorder is called from the Paint method, and occurs after the inherited Paint method and its OnPaint event handler have been executed.

See also

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