BB FlashBack SDK: FBEditor

OnMouseDown

Description

Event handler called when a mouse button is pushed down in the movie playback area of the editor.
 

Syntax

[C#/C++]
void OnMouseDown(Bool mbLeft, Bool mbRight, Bool mbMiddle, Bool ssShift, Bool ssAlt, Bool ssCtrl, int X, int Y);

[VB.NET]
Public Sub OnMouseDown (ByVal mbLeft As Boolean, ByVal mbRight As Boolean, ByVal mbMiddle As Boolean, ByVal ssShift As Boolean, ByVal ssAlt As Boolean, ByVal ssCtrl As Boolean, ByVal X As Long, ByVal Y As Long)
 

Parameters

bLeftBtn - set to True when the left button has been pushed.

bRightBtn - set to True when the right button has been pushed.

bMiddleBtn - set to True when the middle button has been pushed.

bShift - set to True if the Shift key is held down.

bAlt - set to True if the Alt key is held down.

bCtrl - set to True if the Ctrl key is held down.

X - the x coordinate of the mouse, relative to the top left corner of the movie playback area.

Y - the y coordinate of the mouse, relative to the top left corner of the movie playback area.

 
 

Setting the event handler

[C#]
void OnMouseDownHandler (Bool mbLeft, Bool mbRight, Bool mbMiddle, Bool ssShift, Bool ssAlt, Bool ssCtrl, int X, int Y)
{}

editor.OnMouseDown += new IFBEditorEvents_OnMouseDownEventHandler(OnMouseDownHandler);
 

[VB]
AddHandler fbEditor.OnMouseDown, AddressOf OnMouseDownHandler
 

[Delphi]
FBEditor.OnMouseDown := OnMouseDownHandler;
 

[C++ Builder]
Editor->OnMouseDown = OnMouseDownHandler;

 

See Also

FBEditor::OnMouseUp  FBEditor::OnMouseMove  FBEditor::OnClick