CurveShape.Order
From Xojo Documentation
Property (As Integer )
aCurveShape.Order = newIntegerValue
or
IntegerValue = aCurveShape.Order
Supported for all project types and targets.
or
IntegerValue = aCurveShape.Order
Supported for all project types and targets.
The number of off-curve control points that are used.
Notes
It is one of the following values:
Value | Description |
---|---|
0 | A straight line from x,y to x2,y2 is used. |
1 | A quadratic Bezier curve is drawn using one control point. |
2 | A cubic Bezier curve is drawn using two control points. |
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.