OnCurveDesignerPointsChange event |
|
Remarks
Occurs when the curve inside a volume curve designer control is modified by dragging one of the control points through the mouse interaction.
This event replaces the usage of the CallbackCurveDesignerPointsChange delegate and is only intended for usage with applications developed using Visual Basic 6 (which results unreliable when dealing with delegates and callbacks) and, in order to be enabled, requires a call to the COMEventEnable method with the nEventType parameter set to EVENT_TYPE_CURVE_DESIGNER.
For further details about callback delegates see the How to synchronize the container application with the API tutorial.
For details about using the Curve Designer refer to the How to create custom volume curves tutorial.
For details about using Volume Automation refer to the How to manage Volume Automation tutorial.
Syntax
[Visual Basic 6] Private Sub DjStudioApi_OnCurveDesignerPointsChange ( _ ByVal nDesignerUniqueId As Long, _ ByVal nLeftX As Integer, _ ByVal nLeftY As Integer, _ ByVal nRightX As Integer, _ ByVal nRightY As Integer _ )
where "DjStudioApi" is declared in Visual Basic 6 code as:
Dim WithEvents DjStudioApi As AudioDjStudioApi.AudioDjStudioApiObj |
Event Data
Parameters |
Description |
|
|
nDesignerUniqueId |
Number representing the unique identifier of the curve designer as created by the VolumeAutomation.CurveDesigner.Create method |
nLeftX |
Horizontal position, expressed in percentage, of the left side control point of the Bézier curve |
nLeftY |
Vertical position, expressed in percentage, of the left side control point of the Bézier curve |
nRightX |
Horizontal position, expressed in percentage, of the right side control point of the Bézier curve |
nRightY |
Vertical position, expressed in percentage, of the right side control point of the Bézier curve |