Occurs after every OLEDragOver event. Allows the drag source to specify the type of OLE drag-and-drop operation and the visual feedback.
PROCEDURE Object.OLEGiveFeedback LPARAMETERS nEffect, eMouseCursor
The action performed when data is dropped on the drop target. The value of nEffect is set by the drop target in its OLEDragOver event. The following table lists the values for nEffect with a description of each action.
nEffect Foxpro.h constant Description
Drop target cannot accept the data.
Drop results in a copy.
Drop results in a move.
Drop results in a link.
Specifies the mouse pointer displayed during the OLE drag-and-drop operation. eMouseCursor can be a character or numeric value. eMouseCursor is an output parameter and is set to zero on entry into event.
If eMouseCursor is a character value, it's assumed that the character value is the name of a graphics file of type .ani, .cur, or .ico. If eMouseCursor is a numeric value, the value specifies the mouse pointer displayed. The following table lists the numeric values for eMouseCursor with a description of each mouse pointer.
eMouseCursor Foxpro.h constant Description
Shape determined by the object. (Default)
Cross. A cross-hair pointer.
Icon. A small white square within a black square.
Size. A four-pointed arrow pointing north, south, east, west.
Size NE SW. A double arrow pointing northeast and southwest.
Size NS. A double arrow pointing north and south.
Size NW SE. A double arrow pointing northwest and southeast.
Size WE. A double arrow pointing west and east.
Arrow and hourglass.
Arrow and question mark.
Applies To: CheckBox | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | EditBox | Form | Grid | Image | Label | Line | ListBox | OptionButton | OptionGroup | Page | PageFrame | ProjectHook Object | Shape | Spinner | TextBox | ToolBar
OLEGiveFeedback is a drag source event that lets you provide visual feedback to the user. You can change the mouse cursor to indicate the operation that occurs when the mouse is positioned over the drag source or the drop target. Including NODEFAULT has no effect on the behavior of this method.
Note that you should avoid creating wait states in the OLEGiveFeedback event with commands and functions such as WAIT WINDOW and MESSAGEBOX(В ).