PA_DragAndDrop


version 2003


PA_DragAndDrop (startX; startY; useCustomRect; customRect)

Parameter Type Description
startX short Horizontal global position of the mouse
startY short Vertical global position of the mouse
useCustomRect char 1 : Use custom rectangle, 0 : Do not use
customRect PA_Rect Custom 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 .