drawRoundRectangle
drawRoundRectangle(x1: Real; y1: Real; x2: Real; y2: Real; xRoundSize: Real; yRoundSize: Real; color: Integer);
The drawRoundRectangle method of the Window class draws a rectangle with rounded corners on a form or control using a colored pen the width of the drawWidth property, the style of the drawStyle property, and the mode of the drawMode property. If this method is not called from a paint event, set the autoRedraw property to true.
The figure is filled using the drawFillColor and drawFillStyle properties of the object. If the width or the height of the rectangle is zero (0), the function does not draw the rectangle.
The figure drawn by this function extends up to but does not include the right and bottom coordinates, meaning that the height of the figure is y2 through y1 and the width is x2 through x1.
The width and the height of a rectangle must be in the range 2 units through 32,767 units.
The drawRoundRectangle method parameters are listed in the following table.
Parameter | Description |
---|---|
x1, y1 | Left and top points of the rectangle |
x2, y2 | Right and bottom points of the rectangle |
xRoundSize | Width of ellipse for rounded corners |
yRoundSize | Height of ellipse for rounded corners |
color | Color of the pen used |