An object is dragged over the control.
| C# | void object_OLEDragOver(object sender, AxSftDateLib20._ISftCalendarEvents_OLEDragOverEvent e); |
| VB.NET | Private 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); |
| C | HRESULT OnOLEDragOverobject(DataObject** Data, long* Effect, short* Button, short* Shift, float* x, float* y, enum SftControlOLEDragOverConstants* State); |
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.
| Effect | Value | Description |
|---|---|---|
| vbDropEffectNone | 0 | The drop target cannot accept the data. |
| vbDropEffectCopy | 1 | The drop results in a copy of the data from the source to the target. The original data is unaltered by the drag operation. |
| vbDropEffectMove | 2 | The 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.
| Button | Value | Description |
|---|---|---|
| constSftControlLeftButton | 1 | The left mouse button. |
| constSftControlRightButton | 2 | The right mouse button. |
| constSftControlMiddleButton | 4 | The middle mouse button. |
Shift
Describes the state of the SHIFT, CONTROL and ALT keys. A bit is set if the key is down.
| Shift | Value | Description |
|---|---|---|
| constSftControlShiftMask | 1 | The SHIFT key is down. |
| constSftControlCtrlMask | 2 | The CONTROL key is down. |
| constSftControlAltMask | 4 | The 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.
| Name | Value | Description |
|---|---|---|
| enterSftControl | 0 | Enter |
| leaveSftControl | 1 | Leave |
| overSftControl | 2 | Over |
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