RoundRectShape

From Xojo Documentation

Revision as of 15:40, 7 August 2017 by PLefebvre (talk | contribs) (Examples)

Class (inherits from RectShape)

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

Properties
Border Fill Segments
BorderColor FillColor Width
BorderWidth Height X
Cornerheight Rotation Y
Cornerwidth Scale

Examples

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

Dim 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, 150, 150)

See Also

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