TRoundRect = class(TShape)
class PASCALIMPLEMENTATION TRoundRect : public TShape
The rectangle size and position are defined by the bounding rectangle of the TRoundRect object. You can use the scaling factors Scale of the TRoundRect object to proportionally change rectangle coordinates along local coordinate axes. This will move the rectangle and change its shape. The rotation axis RotationCenter and rotation angle RotationAngle of the TRoundRect object can be used to rotate the rectangle.
The Corners property defines which rectangle corners are to be rounded. The
Radius of the rounding is defined by the following formula:
Radius := Min(RectHeight(GetShapeRect),RectWidth(GetShapeRect)) / 2;
Paint draws the contour and fills the background using the drawing pen and brush with the properties, color, and opacity defined by the Stroke, StrokeThickness, StrokeCap, StrokeDash, StrokeJoin, and Fill properties of the TRoundRect object.