Copyright © 2011-2023 MultiMedia Soft

OnCurveDesignerPointsChange event

Previous pageReturn to chapter overviewNext page

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_EDT_CURVE_DESIGNER.

 

For details about using the Curve Designer refer to the How to create custom volume curves tutorial.

For further details about defining a volume automation procedure refer to the How to define a volume automation procedure section.

 

 

Syntax

 

[Visual Basic 6]

Private Sub EditorApi_OnCurveDesignerPointsChange ( _

ByVal nDesignerUniqueId As Long, _

ByVal nLeftX As Integer, _

ByVal nLeftY As Integer, _

ByVal nRightX As Integer, _

ByVal nRightY As Integer _

)

 

where "EditorApi" is declared in Visual Basic 6 code as:

 

Dim WithEvents EditorApi As AudioSoundEditorApi.AudioSoundEditorApiObj


 

 

Event Data

 

Parameters

Description

 

 

nDesignerUniqueId

Number representing the unique identifier of the curve designer as created by the Effects.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