OLEDragOver Event
Description
Occurs when one component is dragged over another.
Syntax
Public Event OLEDragOver( _
ByVal Data As DataObject, _
ByRef Effect As Long, _
ByVal Button As Integer, _
ByVal Shift As Integer, _
ByVal x As Long, _
ByVal y As Long, _
ByVal state As Integer _
)
Parameters
-
Data
ADataObjectobject containing formats that the source will provide and, in addition, possibly the data for those formats. If no data is contained in theDataObject, it is provided when the control calls theGetDatamethod. -
Effect
A long integer initially set by the source object identifying all effects it supports. This parameter must be correctly set by the target component during this event. The value ofEffectis determined by logicallyOr'ing together all active effects (as listed in Settings). The target component should check these effects and other parameters to determine which actions are appropriate for it, and then set this parameter to one of the allowable effects (as specified by the source) to specify which actions will be performed if the user drops the selection on the component. 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 are depressed, the value of shift would be 6. -
x
A number that specifies the current horizontal (x) and vertical (y) position of the mouse pointer within the target form or control. Thexandyvalues are always expressed in terms of the coordinate system set by theScaleHeight,ScaleWidth,ScaleLeft, andScaleTopproperties of the object. -
y
A number that specifies the current horizontal (x) and vertical (y) position of the mouse pointer within the target form or control. Thexandyvalues are always expressed in terms of the coordinate system set by theScaleHeight,ScaleWidth,ScaleLeft, andScaleTopproperties of the object. -
state
An integer that corresponds to the transition state of the control being dragged in relation to a target form or control.
See Also
Example
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.