CallbackWaveformScrollerMouseNotif delegate |
|
Remarks
Callback delegate invoked every time a mouse event happens on the waveform scroller: this callback can be set through a call to the CallbackWaveformScrollerMouseNotifSet method.
The usage of this delegate is alternative to the WaveScrollerMouseNotification event.
For further details about callback delegates see the How to synchronize the container application through callback delegates tutorial.
For further details about methods of the Waveform scroller refer to the WaveformScroller object.
For a tutorial about the use of Waveform scrollers refer to the How to scroll the sound's waveform during playback tutorial.
Syntax
[Visual Basic] Public Delegate Sub CallbackWaveformScrollerMouseNotif ( hWndWaveformScroller as IntPtr, nAction as enumMouseActions, nFlags as Int32, xPos as Int32, yPos as Int32, nPressPosInPix as Int32, nPressPosInMs as Int32 ) |
[C#] public delegate void CallbackWaveformScrollerMouseNotif ( IntPtr hWndWaveformScroller, enumMouseActions nAction, Int32 nFlags, Int32 xPos, Int32 yPos, Int32 nPressPosInPix, Int32 nPressPosInMs ) |
[C++] public delegate void CallbackWaveformScrollerMouseNotif ( IntPtr hWndWaveformScroller, enumMouseActions nAction, Int32 nFlags, Int32 xPos, Int32 yPos, Int32 nPressPosInPix, Int32 nPressPosInMs ) |
Parameter |
Description |
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
hWndWaveformScroller |
Handle of the control returned by a previous call to the WaveformScroller.Create method |
||||||||||||||||||||||||||||||||||||||||||||||||
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 waveform's client area, where the mouse generated the notification |
||||||||||||||||||||||||||||||||||||||||||||||||
yPos |
Vertical position, expressed in pixels respect to the waveform's client area, 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. |