[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Draws the border for the grid control.
Source position: grids.pas line 1053
protected procedure TCustomGrid.DrawBorder; |
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.
|
Draws the border for the grid control. |
|
|
Drawing style used for the borders on the control. |
|
|
Indicates if cells are displayed using a Flat appearance. |
|
|
Draws the edges, borders, and rows in the grid control. |
|
|
The drawing surface for the control. |
|
|
The height for the client area on the control. |
|
|
The width of the client area for the control. |
Version 4.0 | Generated 2025-05-03 | Home |