[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Draws a frame or border around the specified rectangle using the Pen for the canvas.
Source position: graphics.pp line 1131
public procedure TCanvas.Frame( |
const ARect: TRect |
); virtual; |
X1: Integer; |
Y1: Integer; |
X2: Integer; |
Y2: Integer |
); |
ARect |
|
TRect instance with the bounds for the rectangle. |
X1 |
|
Left coordinate for the Top, Left of the rectangle. |
Y1 |
|
Top coordinate for the Top, Left of the rectangle. |
X2 |
|
Right coordinate for the Bottom, Right of the rectangle. |
Y2 |
|
Bottom coordinate for the Bottom, Right of the rectangle. |
Frame is method used to draw a border or frame for the specified rectangle use the Pen for the canvas. Overloaded variants of the method are provided which allow the rectangle to be specified as:
Frame sets the Style property in Brush to bsClear. This suppresses filling the interior of the rectangle with the Color for the Brush. In others words, the area in side the frame is transparent. The Brush style is restored to its previous value prior to exit.
Frame calls the Rectangle method to draw the borders on the frame using the Pen for the canvas.
Set property values in Pen prior to calling the method, including:
|
Draws a Rectangle with the specified coordinates. |
|
|
Draws a border around the specified rectangle with the Brush for the canvas. |
|
|
Draws a frame for the specified rectangle with a 3-dimensional appearance. |
|
|
Fills an area at the specified coordinates with the current Brush for the canvas. |
Version 3.2 | Generated 2024-02-25 | Home |