HeaderPane
Main
Hide
Share Link
Print

MouseDown Event, SftDate Object

A mouse button is pressed.

Syntax

C#void object_MouseDownEvent(object sender, AxSftDateLib20._ISftDateEvents_MouseDownEvent e);
VB.NETPrivate Sub object_MouseDownEvent(ByVal sender As Object, ByVal e As AxSftDateLib20._ISftDateEvents_MouseDownEvent) Handles object.MouseDownEvent
C++void OnMouseDownobject(short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos);
CHRESULT OnMouseDownobject(short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos);

object

A SftDate object.

Button

Describes the mouse buttons that are pressed. A bit is set if the button is down.

ButtonValueDescription
constSftControlLeftButton1The left mouse button.
constSftControlRightButton2The right mouse button.
constSftControlMiddleButton4The middle mouse button.

Shift

Describes the state of the SHIFT, CONTROL and ALT keys. A bit is set if the key is down.

ShiftValueDescription
constSftControlShiftMask1The SHIFT key is down.
constSftControlCtrlMask2The CONTROL key is down.
constSftControlAltMask4The ALT key is down.

xPos

The x coordinate of the mouse cursor in pixels, relative to the control.

yPos

The y coordinate of the mouse cursor in pixels, relative to the control.

Comments

The MouseDown event occurs when a mouse button is pressed over the control. p The HitTest method returns the part of the control at the location, for example to show a context menu for a day. An application that shows a menu or a message box calls the CancelMode method first.

See Also SftDate Object | Object Hierarchy | Hit Testing


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.