HeaderPane
Main
Hide
Share Link
Print

MouseUp Event, SftCalendar Object

A mouse button is released.

Syntax

C#void object_MouseUpEvent(object sender, AxSftDateLib20._ISftCalendarEvents_MouseUpEvent e);
VB.NETPrivate Sub object_MouseUpEvent(ByVal sender As Object, ByVal e As AxSftDateLib20._ISftCalendarEvents_MouseUpEvent) Handles object.MouseUpEvent
C++void OnMouseUpobject(short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos);
CHRESULT OnMouseUpobject(short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos);

object

A SftCalendar 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 MouseUp event occurs when a mouse button is released over the control.

Examples

VB.NET View entire sample code

    Private Sub sftCalendar_KeyUpEvent(sender As Object, e As _ISftCalendarEvents_KeyUpEvent) Handles sftCalendar.KeyUpEvent
        LogEvent(sender, "KeyUp", "KeyCode=0x" & e.keyCode.ToString("X2") & " Shift=" & e.shift)
    End Sub

    Private Sub sftCalendar_MouseDownEvent(sender As Object, e As _ISftCalendarEvents_MouseDownEvent) Handles sftCalendar.MouseDownEvent
        LogEvent(sender, "MouseDown", "Button=" & e.button & " Shift=" & e.shift & " x=" & e.xPos & " y=" & e.yPos)
    End Sub

    Private Sub sftCalendar_MouseUpEvent(sender As Object, e As _ISftCalendarEvents_MouseUpEvent) Handles sftCalendar.MouseUpEvent
        LogEvent(sender, "MouseUp", "Button=" & e.button & " Shift=" & e.shift & " x=" & e.xPos & " y=" & e.yPos)
    End Sub

    Private Sub sftCalendar_MouseDblClk(sender As Object, e As _ISftCalendarEvents_MouseDblClkEvent) Handles sftCalendar.MouseDblClk
        LogEvent(sender, "MouseDblClk", "Button=" & e.button & " Shift=" & e.shift & " x=" & e.xPos & " y=" & e.yPos)
    End Sub

See Also SftCalendar Object | Object Hierarchy | Hit Testing


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