CurveShape.Segments
From Xojo Documentation
Property (As Integer )
aCurveShape.Segments = newIntegerValue
or
IntegerValue = aCurveShape.Segments
Supported for all project types and targets.
or
IntegerValue = aCurveShape.Segments
Supported for all project types and targets.
The number of straight line segments to use to approximate a curve. The default value of zero will cause a "sensible" number of segments to be used.
Sample Code
The following method is in the MouseDown event of a Window. It draws a simple curve when the user presses the mouse button. The negative value of ControlY(0) places the control point above the imaginary straight line from x,y to x2,y2.