HeaderPane
Main
Hide
Share Link
Print

OLEDragOver Event, SftCalendar Object

An object is dragged over the control.

Syntax

C#void object_OLEDragOver(object sender, AxSftDateLib20._ISftCalendarEvents_OLEDragOverEvent e);
VB.NETPrivate Sub object_OLEDragOver(ByVal sender As Object, ByVal e As AxSftDateLib20._ISftCalendarEvents_OLEDragOverEvent) Handles object.OLEDragOver
C++void OnOLEDragOverobject(DataObject** Data, long* Effect, short* Button, short* Shift, float* x, float* y, enum SftControlOLEDragOverConstants* State);
CHRESULT OnOLEDragOverobject(DataObject** Data, long* Effect, short* Button, short* Shift, float* x, float* y, enum SftControlOLEDragOverConstants* State);

object

A SftCalendar object.

Data

A DataObject object containing formats that the source will provide and, in addition, possibly the data for those formats. If no data is contained in the DataObject, it is provided when the control calls the GetData method. The SetData and Clear methods cannot be used here.

Effect

A value set by the source object identifying all effects it supports. The target component sets it to one of the allowable effects to specify which action will be performed if the user drops the data on the control.

EffectValueDescription
vbDropEffectNone0The drop target cannot accept the data.
vbDropEffectCopy1The drop results in a copy of the data from the source to the target. The original data is unaltered by the drag operation.
vbDropEffectMove2The drop results in the data being moved from the drag source to the drop target. The drag source should remove the data from itself after the move.

Note: The constants vbDropEffectNone, etc. are not predefined and have to be defined by the application.

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.

x

The x coordinate of the mouse cursor, in the units of the container.

y

The y coordinate of the mouse cursor, in the units of the container.

State

Defines the transition state of the data being dragged in relation to the target control.

NameValueDescription
enterSftControl0Enter
leaveSftControl1Leave
overSftControl2Over

Comments

The OLEDragOver event occurs when data is dragged over the control. p The OLEDragOver event only occurs if the OLEDropMode property is set to OLEDropSftControlManual. p The Effect values should always be masked, as in (Effect And vbDropEffectCopy), because future versions of OLE drag & drop may define other bits.

See Also SftCalendar Object | Object Hierarchy


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