From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from RectShape)

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

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, TextShape classes.