Accusoft ImagXpress 13
OLEDragDrop Event
A variant value which represents the data.
An integer which represents the format.
A long integer set by the target component identifying the action that has been performed (if any), thus allowing the source to take appropriate action if the component was moved (such as the source deleting the data). The possible values are listed in Settings.
An integer which acts as a bit field corresponding to the state of a mouse button when it is depressed. The left button is bit 0, the right button is bit 1, and the middle button is bit 2. These bits correspond to the values 1, 2, and 4, respectively. It indicates the state of the mouse buttons; some, all, or none of these three bits can be set, indicating that some, all, or none of the buttons are depressed.
An integer which acts as a bit field corresponding to the state of the SHIFT, CTRL, and ALT keys when they are depressed. The SHIFT key is bit 0, the CTRL key is bit 1, and the ALT key is bit 2. These bits correspond to the values 1, 2, and 4, respectively. The shift parameter indicates the state of these keys; some, all, or none of the bits can be set, indicating that some, all, or none of the keys are depressed. For example, if both the CTRL and ALT keys were depressed, the value of shift would be 6.
A number which specifies the current location of the mouse pointer.
A number which specifies the current location of the mouse pointer. The x and y values are always expressed in terms of the coordinate location of the object.
Description
Raised when a source component is dropped onto a target component when the source component determines that a drop can occur.
Syntax
Visual Basic
Public Event OLEDragDrop( _
   ByVal Data As Variant, _
   ByVal Format As Integer, _
   ByVal Effect As Long, _
   ByVal Button As Long, _
   ByVal Shift As Long, _
   ByVal x As Integer, _
   ByVal y As Integer _
)
Parameters
Data
A variant value which represents the data.
Format
An integer which represents the format.
Effect
A long integer set by the target component identifying the action that has been performed (if any), thus allowing the source to take appropriate action if the component was moved (such as the source deleting the data). The possible values are listed in Settings.
Button
An integer which acts as a bit field corresponding to the state of a mouse button when it is depressed. The left button is bit 0, the right button is bit 1, and the middle button is bit 2. These bits correspond to the values 1, 2, and 4, respectively. It indicates the state of the mouse buttons; some, all, or none of these three bits can be set, indicating that some, all, or none of the buttons are depressed.
Shift
An integer which acts as a bit field corresponding to the state of the SHIFT, CTRL, and ALT keys when they are depressed. The SHIFT key is bit 0, the CTRL key is bit 1, and the ALT key is bit 2. These bits correspond to the values 1, 2, and 4, respectively. The shift parameter indicates the state of these keys; some, all, or none of the bits can be set, indicating that some, all, or none of the keys are depressed. For example, if both the CTRL and ALT keys were depressed, the value of shift would be 6.
x
A number which specifies the current location of the mouse pointer.
y
A number which specifies the current location of the mouse pointer. The x and y values are always expressed in terms of the coordinate location of the object.
Remarks

The OLEDragOver and OLEDragDrop events only occur when the OLEDropMode property is set to OLEDROP_MANUAL (1).

Note: For security reasons, drag/drop is disallowed between windows with different security levels.

See Also

ImagXpress Object  | ImagXpress Members  | OLEDragOver Event  | OLEDropMode Property  | Window and Control

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback