Copyright © 2006-2023 MultiMedia Soft

OnWaveformAnalyzerGraphicItemClick event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs when a mouse button is clicked over a graphic item available on the waveform analyzer.

 

This event replaces the usage of the CallbackWaveformAnalyzerGraphItemClick 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_ITEM_CLICK.

 

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_OnWaveformAnalyzerGraphicItemClick ( _

ByVal nButton as enumMouseButtons, _

ByVal nUniqueID as Integer, _

ByVal nGraphicItemType as enumGraphicItemType, _

ByVal nFlags as Long, _

ByVal xPos as Long, _

ByVal yPos as Long _

)

 

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

 

Dim WithEvents RecorderApi As AudioSoundRecorderApi.AudioSoundRecorderApiObj


 

 

Event Data

 

Parameters

Description

 

 

nButton

Clicked mouse button.

Supported values are the following:

Mnemonic constant

Value

Meaning

MOUSE_BTN_LEFT

0

Left mouse button

MOUSE_BTN_RIGHT

1

Right mouse button

MOUSE_BTN_MIDDLE

2

Middle mouse button

nUniqueID

Unique identification number assigned to the graphic item.

The unique identification number of a graphic item is generated using one of the following methods:

nGraphicItemType

Type of graphic item.

Supported values are the following:

Mnemonic constant

Numeric value

Meaning

GRAPHIC_ITEM_VERTICAL_LINE

0

Vertical line

GRAPHIC_ITEM_HORIZONTAL_LINE

1

Horizontal line

GRAPHIC_ITEM_WAVE_RANGE

2

Wave range

nFlags

Can be a combination of the following values:

Value

Meaning

1

Set if left mouse button is down (defined as MK_LBUTTON inside the Windows SDK)

2

Set if right mouse button is down (defined as MK_RBUTTON inside the Windows SDK)

4

Set if keyboard's SHIFT key is down (defined as MK_SHIFT inside the Windows SDK)

8

Set if keyboard's CTRL key is down (defined as MK_CONTROL inside the Windows SDK)

16 (hex 10)

Set if middle mouse button is down (defined as MK_MBUTTON inside the Windows SDK)

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