Copyright © 2013-2017 MultiMedia Soft

WaveAnalyzerGraphicItemClick event

Previous pageReturn to chapter overviewNext page

Remarks

 

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

 

 

Syntax

 

[Visual Basic]

Public Event WaveAnalyzerGraphicItemClick As WaveAnalyzerGraphicItemClickEventHandler


 

[C#]

public event WaveAnalyzerGraphicItemClickEventHandler WaveAnalyzerGraphicItemClick;


 

[C++]

public: __event WaveAnalyzerGraphicItemClickEventHandler WaveAnalyzerGraphicItemClick;


 

 

Event Data

 

The event handler receives an argument of type WaveAnalyzerGraphicItemClickEventArgs having the following parameters:

 

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:

GraphicItemHorizontalLineAdd for horizontal lines
GraphicItemVerticalLineAdd for vertical lines
GraphicItemWaveRangeAdd for wave ranges

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