PA_DragAndDrop

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_DragAndDrop (startX; startY; useCustomRect; customRect)

ParameterTypeDescription
startXshortHorizontal global position of the mouse
startYshortVertical global position of the mouse
useCustomRectchar1 : Use custom rectangle, 0 : Do not use
customRectPA_RectCustom object rectangle

Description

The routine PA_DragAndDrop can be called when PA_AreaEvent returns eAE_MouseDown. It initiates a drag-drop operation. Pass the horizontal coordinate of the mouse in startX and its vertical coordinate in startY (be sure to use global coordinates, you may need to use LocalToGlobal on Macintosh or ClientToScreen under Windows to convert the local coordinates of the click returned by PA_GetClick to global coordinates needed for this drag and drop operation). Pass in customRect the rectangle that 4D will draw during the drag operation if you set customRect to 1. If customRect is set to 0, the dragging rectangle will be the size of the external area.

NOTE

The routines "Drag and Drop" are internal to 4th Dimension. The developer cannot use them with other applications.

See Also

Drag and drop with a plugin area, PA_AllowDrop, PA_GetClick.


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next