OnWaveformAnalyzerMouseNotif event |
|
Remarks
Occurs when a mouse action happens over the waveform analyzer.
This event replaces the usage of the CallbackWaveformAnalyzerMouseNotif 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_REC_WAVE_MOUSE.
For details about the use of the Waveform Analyzer refer to the How to use the Waveform Analyzer section.
For further details about methods of the Waveform Analyzer refer to the WaveformAnalyzer class section.
Syntax
[Visual Basic 6] Private Sub RecorderApi_OnWaveformAnalyzerMouseNotif ( _ ByVal nAction as enumMouseActions, _ ByVal nFlags as Long, _ ByVal xPos as Long, _ ByVal yPos as Long _ ByVal nPressPosInPix as Long, _ ByVal nPressPosInMs as Long _ )
where "RecorderApi" is declared in Visual Basic 6 code as:
Dim WithEvents RecorderApi As AudioSoundRecorderApi.AudioSoundRecorderApiObj |
Event Data
Parameters |
Description |
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
nAction |
Mouse action type. Supported values are the following:
|
||||||||||||||||||||||||||||||||||||||||||||||||
nFlags |
Can be a combination of the following values:
|
||||||||||||||||||||||||||||||||||||||||||||||||
xPos |
Horizontal position, expressed in pixels respect to the client area of the whole user interface of the waveform analyzer, where the mouse generated the notification |
||||||||||||||||||||||||||||||||||||||||||||||||
yPos |
Vertical position, expressed in pixels respect to the client area of the whole user interface of the waveform analyzer, where the mouse generated the notification |
||||||||||||||||||||||||||||||||||||||||||||||||
nPressPosInPix |
Number representing the position expressed in pixels where the mouse button was pressed. If the mouse action should have been performed outside of the waveform's area, this parameter would be set to -1. It's important to note that this parameter doesn't represent the horizontal position on the waveform's visible area (for this you can refer to the xPos parameter) but to the horizontal position in pixels calculated respect to the bitmap representation of the total waveform's width in pixels at the current horizontal zoom factor. |
||||||||||||||||||||||||||||||||||||||||||||||||
nPressPosInMs |
Number representing the position expressed in milliseconds where the mouse button was pressed. If the mouse action should have been performed outside of the waveform's area, this parameter would be set to -1. |