Using Drag and Drop

Drag and drop allows users to initiate activities by dragging a control and dropping it on another control. Except OLE, drag and drop is supported for other draggable controls and objects with features listed in the table below:

Table 5. 

Drag and Drop properties

Supported

DragAuto

DragIcon

   

Drag and Drop Events

Supported

BeginDrag

BeginRightDrag

DragDrop

DragEnter

DragLeave

DragWithin

   

Unsupported

If the DragIcon is not specified for a control except the ListView or TreeView control, pressing the left mouse button without moving will trigger both DragEnter and DragWithin events in PowerBuilder, however, DragEnter event only on the Web.

Drag and Drop Functions

Supported

Drag

DraggedObject

   

Drag mode

Unsupported

Key event is unsupported if controls are in drag mode.

UI differences during the drag and drop

Difference

(For all supported draggable controls except the TreeView and ListView controls) The icon of the mouse will not change, if it is not on the client area of a control.

(For TreeView and ListView) When you drag a control, you cannot see the mouse icon during the drag.

Appeon does not support dragging and dropping multiple controls simultaneously. You can only drag and drop one control at a time.