|
|
|
|
|
- Drag and Drop
- Drag-and-drop operations managed automatically or set programmatically
- Limitations
DndTarget (Property) In french: DndCible
Drag and Drop Some controls of WINDEV and WEBDEV can manage drag-and-drop operations automatically: simply check the corresponding option in the "Details" tab of the control description. A control can be defined as source or target of a drag-and-drop operation. Drag-and-drop operations are automatically available: - for Upload, Static, Button, Link, Image, formatted text, List Box and Combo Box controls.
In a drag-and-drop operations set programmatically, the DndSource and DndTarget properties are used to define the source and target controls. The DndTarget property determines and changes how a control behaves in a drag-and-drop operation. The control will be defined as the drop target, i.e., the control where the dragged items will be dropped.
Syntax
Getting the behavior of a target control in a drag-and-drop operation Hide the details
<Drag and Drop> = <Control used>.DndTarget
<Drag and Drop>: Constant Identifies the behavior of the target control in a drag-and-drop operation.
| | dndAuto | Drag-and-drop operations are handled automatically. | dndInactive | The control does not accept drag-and-drop operations. | dndProgram | The developer sets the drag-and-drop operation programmatically. |
<Control used>: Control name Name of the control to be used.
Changing the behavior of a target control in a drag-and-drop operation Hide the details
<Control used>.DndTarget = <Drag and Drop>
<Control used>: Control name Name of the control to be used. <Drag and Drop>: Constant Identifies the behavior of the target control in a drag-and-drop operation.
| | dndAuto | Drag-and-drop operations are handled automatically. | dndInactive | The control does not accept drag-and-drop operations. | dndProgram | The developer sets the drag-and-drop operation programmatically. |
Remarks Drag-and-drop operations managed automatically or set programmatically
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|