Vcl.ExtCtrls.Frame3D

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Frame3D(Canvas: TCanvas; var Rect: TRect; TopColor, BottomColor: TColor;
Width: Integer);

C++

extern DELPHI_PACKAGE void __fastcall Frame3D(Vcl::Graphics::TCanvas* Canvas, System::Types::TRect &Rect, System::Uitypes::TColor TopColor, System::Uitypes::TColor BottomColor, int Width);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls Vcl.ExtCtrls

Description

Draws a three-dimensional frame on a canvas.

Use Frame3D to create three-dimensional effects when drawing directly on a canvas.

The Canvas parameter is the canvas to draw on.

The Rect parameter specifies the position on the canvas where the three-dimensional rectangle should appear. It returns the dimensions of the rectangle that lies inside the frame.

The TopColor and BottomColor parameters indicate the colors that appear on the left and top or the right and bottom of the rectangle, respectively.

The Width parameter specifies the width of the frame.

To create a raised effect, TopColor should be a light color and BottomColor should be a shadow color. To create a sunken effect, TopColor should be the shadow color and BottomColor should be the light color. To create a beveled effect, draw a frame immediately inside another frame with the colors reversed.

See Also