Share via


MouseEvent Object [Visio 2003 SDK Documentation]

MouseEvent
Window

The object passed to VisEventProc as the subject of MouseDown, MouseMove, and MouseUp events.

Version added

2003

Remarks

The default property of MouseEvent is ToString. The ToString property returns a string that represents the properties of the MouseEvent object and has the form

event code; Button property value; KeyButtonState property value; x property value; y property value; Window.Caption

where event code returns the code of the event that fired (MouseDown, MouseMove, or MouseUp) and Window.Caption returns the caption of the window that sourced the event. For example, if a user clicked the left mouse button near the middle of the drawing page while holding down the SHIFT key, in response to the MouseDown event, ToString might return

709;1;5;4.3750003+000;4.265000+000;Drawing1

Use the Application property of the MouseEvent object to determine the Microsoft Office Visio instance hosting the object, and use the Window property to determine the Visio window associated with a mouse event.

Properties | Button property | KeyButtonState property | ObjectType property | ToString property | Window property | x property | y property

Parent Objects

Child Objects | Window Object

See Also | Caption property | MouseDown event | MouseMove event | MouseUp event | VisEventProc method