Sign in Join
FPDoc Onlineexperiment

TWidgetSet.RoundRect function

Member of TWidgetSetpublicIn unit InterfaceBase

Draws a filled rectangle with rounded corners.

Declaration

pascal
function RoundRect(DC: hDC; X1: Integer; Y1: Integer; X2: Integer; 
 Y2: Integer; RX: Integer; RY: Integer): Boolean
 ; virtual

Arguments

DC

The device context.

X1

The rectangle coordinates.

Y1
X2
Y2
RX

The extent of the ellipse, used for the rounded corners.

RY

The extent of the ellipse, used for the rounded corners.

Function result

False on failure.

Description

The rectangle is outlined with the current Pen, and filled with the current Brush.

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