|
|
|
|
|
DnDCursor (Function) In french: DnDCurseur Manages the mouse cursor and specifies the action allowed during Drag and Drop. The cursor remains the same until the end of the Drag and Drop action or until next time DnDCursor is called. Remarks: The DnDCursor function must be used when calling the dndSurvol event ( DnDEvent function).
PROCEDURE SurSurvol()
DnDCursor(dndMove)
Remarks The following variables can be used: | | Variable name | Description |
---|
_DND.Action | Action specified in DnDAccept.
The various possible values are as follows: dndCopy, dndMove and dndProhibited.
This variable is not filled at the beginning of Drag and Drop in a source control (dndBeginDrag constant) or when exiting from a target control (dndDragLeave constant). | _DND.TargetControl | Name of target control.
This variable is not filled at the beginning of Drag and Drop in a source control (dndBeginDrag constant) or when exiting from a target control (dndDragLeave constant). | _DND.SourceControl | Name of source control. | _DND.CtrlDown | Status of Ctrl key:- True: the Ctrl control key is pressed.
- False: the Ctrl control key is not pressed.
This variable is not filled at the beginning of Drag and Drop in a source control (dndBeginDrag constant) or when exiting from a target control (dndDragLeave constant). | _DND.SourceWin | Name of source window.
This variable is not filled when exiting from a target control (dndDragLeave constant). | _DND.MouseXPos | Horizontal position (X) of mouse cursor in relation to the control handled during the event.
This variable is not filled when exiting from a target control (dndDragLeave constant). | _DND.MouseYPos | Vertical position (Y) of mouse cursor in relation to the control handled during the event.
This variable is not filled when exiting from a target control (dndDragLeave constant). |
The _DND.SourceControl and _DND.SourceWin variables return an empty string ("") when the Drag and Drop comes from an application other than the current application.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|