Object Reference > True DBGrid Events > OLEGiveFeedback Event |
The OLEGiveFeedback event occurs after every OLEDragOver event of the target component.
TDBGrid_OLEGiveFeedback (Effect As Long, DefaultCursors As Boolean)
Effect is a long integer set by the source object identifying the action that has been performed, thus allowing the source to take appropriate action if the component was moved (such as the source deleting data if it is moved from one component to another). The possible values of Effectare as follows:
DefaultCursors is a Boolean that determines whether appropriate default cursors are used to indicate the state of the drag/drop operation, or if custom cursors are used instead. If True (the default), the default mouse cursor is used. If False, custom cursors are used, and the mouse cursor must be set with the MousePointer property of the Screen object.
The OLEGiveFeedback event occurs when a grid control is the source component of a drag/drop operation. This event enables your application to provide feedback to the user, such as changing the mouse cursor to indicate what will happen if the user drops the object.
If there is no code in the OLEGiveFeedback event, or if the DefaultCursors parameter is False, then the mouse cursors are set automatically.