An object is dropped on the control.
| C# | void object_OLEDragDrop(object sender, AxSftDateLib20._ISftCalendarEvents_OLEDragDropEvent e); |
| VB.NET | Private Sub object_OLEDragDrop(ByVal sender As Object, ByVal e As AxSftDateLib20._ISftCalendarEvents_OLEDragDropEvent) Handles object.OLEDragDrop |
| C++ | void OnOLEDragDropobject(DataObject** Data, long* Effect, short* Button, short* Shift, float* x, float* y); |
| C | HRESULT OnOLEDragDropobject(DataObject** Data, long* Effect, short* Button, short* Shift, float* x, float* y); |
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 target component identifying the action that has been performed (if any), thus allowing the source to take appropriate action if the data was moved (such as the source deleting the data).
| 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.
The OLEDragDrop event occurs when data is dropped on the control. p The OLEDragDrop event only occurs if the OLEDropMode property is set to OLEDropSftControlManual. The application decides what to do with the data, for example set the control's value to a date it contains. 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