RoundRectShape

From Xojo Documentation

Class (inherits from RectShape)

Draws a (two-dimensional) rounded rectangle in a vector graphics environment.

Properties
BorderColor FillColor Segments
BorderOpacity FillOpacity Width
BorderWidth Height X
CornerHeight Rotation Y
CornerWidth Scale

Sample Code

The following method in the Paint event of a window draws a square with rounded corners.

Var r As New RoundRectShape
r.Width = 75
r.Height = 75
r.Border = 100
r.BorderColor = RGB(0, 0, 0)
r.FillColor = RGB(255, 102, 102)
r.CornerHeight = 15
r.CornerWidth = 15
r.BorderWidth = 2.5
g.DrawObject(r, 50, 50)

See Also

ArcShape, CurveShape, FigureShape, FolderItem, Group2D, Graphics, OvalShape, Picture, PixmapShape, RectShape, RoundRectShape, TextShape classes.