CurveShape.ControlX
From Xojo Documentation
Property (As Double )
aCurveShape.ControlX(Index as Integer) = newDoubleValue
or
DoubleValue = aCurveShape.ControlX(Index as Integer)
Supported for all project types and targets.
or
DoubleValue = aCurveShape.ControlX(Index as Integer)
Supported for all project types and targets.
A zero-based array of control points (horizontal position).
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.