WebGraphics.DrawRoundRect
From Xojo Documentation
Method
WebGraphics.DrawRoundRect(x As Integer, y As Integer, width As Integer, height As Integer, ArcWidth As Integer)
Supported for all project types and targets.
Supported for all project types and targets.
Draws the outline of a rounded rectangle in the current color (specified by ForeColor).
x and y are the coordinates of the top-left corner. width and height specify the size of the round rectangle. ArcWidth controls the shape of the corners of both the horizontal and vertical axes. It is the distance (in pixels) from the corner at which the arc begins. Setting ArcWidth to zero results in a rectangle with sharp corners (a normal rectangle).
Example
This example draws two squares with a 5-pixel red border. The left square sets the arcs to 10 and the right one to 25.
g.ForeColor = &cff0000
g.PenWidth = 5
g.DrawRoundRect(10, 10, 100, 100, 10)
g.DrawRoundRect(130, 10, 100, 100, 25)
g.PenWidth = 5
g.DrawRoundRect(10, 10, 100, 100, 10)
g.DrawRoundRect(130, 10, 100, 100, 25)