ComponentOne True DBGrid Pro 8
OLEGiveFeedback Event

 

Object Reference> True DBGrid Events> OLEGiveFeedback Event

OLEGiveFeedback Event

The OLEGiveFeedback event occurs after every OLEDragOver event of the target component.

Syntax

TDBGrid_OLEGiveFeedback (Effect As Long, DefaultCursors As Boolean)

Arguments

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:

0 - vbDropEffectNone

Drop target cannot accept the data or the drop operation was canceled.

1 - vbDropEffectCopy

Drop results in a copy of data from the source to the target. The original data is unaltered by the drag operation.

2 - vbDropEffectMove

Drop results in a link to the original data being created between drag source and drop target.

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.

Remarks

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.

See Also

TDBGrid Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback