[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TCanvas.FrameRect

Draws a border around the specified rectangle with the Brush for the canvas.

Declaration

Source position: graphics.pp line 1133

public procedure TCanvas.FrameRect(

  const ARect: TRect

); virtual;

procedure TCanvas.FrameRect(

  X1: Integer;

  Y1: Integer;

  X2: Integer;

  Y2: Integer

);

Arguments

ARect

  

TRect instance with the bounds for the rectangle.

Arguments

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.

Description

FrameRect is an overloaded method used to draw a frame or border for the specified rectangular area using the Brush for the canvas. Overloaded variants allow the bounds for the rectangle to be defined using:

Four separate Integer values representing the Top/Left and Bottom/Right coordinates for the rectangle.

A TRect instance where the vertices are represented as either four Integers, two TPoint instances for TopLeft and BottomRight, or a vector using the TArray4IntegerType.

FrameRect draws the border for the shape using the style, color, or bitmap defined in Brush. The drawing operation is always performed using a 1 pixel width / height.

FrameRect calls the routine in the LCL interface which implements the method for the widgetset. The return value from the LCL interface is ignored.

Use Frame to draw borders on a rectangle using the Pen for the canvas. Use Frame3D to draw borders using a specified bevel style or colors which simulate 3-dimensional relief.

See also

TCanvas.Brush

  

The Brush used to paint on the Canvas.

TCanvas.Frame

  

Draws a frame or border around the specified rectangle using the Pen for the canvas.

TCanvas.Frame3D

  

Draws a frame for the specified rectangle with a 3-dimensional appearance.

TCanvas.Rectangle

  

Draws a Rectangle with the specified coordinates.

LCLIntf.FrameRect

  

Draws a border around a rectangle.


Version 3.2 Generated 2024-02-25 Home