|
|
|
|
- Drag-and-drop operations managed automatically or set programmatically
- Limit
DndSource (Property) In french: DndSource
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 Edit, List Box, ListView and TreeView controls. for Upload, Static, Button, Link, Image, formatted text, List Box and Combo Box controls.
In a drag-and-drop operation set programmatically, the DndSource and DndTarget properties are used to define the Drag and Drop source and target controls. The DndSource property is used to determine and change a control's drag and drop behavior (List, ListView, Looper, TreeView, etc.). This control will be defined as source for Drag and Drop, which means that Drag and Drop will be performed from this control.
// -- Initialization of LIST_Source // LIST_Source is not a target LIST_Source.DndSource = dndInactive // -- Initialization of LIST_Target LIST_Target.DndTarget = dndProgram DnDEvent("Drop", "LIST_Target", dndDrop) DnDEvent("DragOver", "LIST_Target", dndDragOver)
Syntax
Finding out the behavior of a source control for Drag and Drop Hide the details
<Drag and Drop> = <Control used>.DndSource
<Drag and Drop>: Constant Identifies the behavior of the source control for Drag and Drop: | | dndAuto | The drag-and-drop operation is managed automatically | dndInactive | Drag and Drop is disabled for this control | dndProgram | The developer sets the drag-and-drop operation programmatically |
<Control used>: Control name Name of the control to be used.
Modifying the behavior of a source control for Drag and Drop Hide the details
<Control used>.DndSource = <Drag and Drop>
<Control used>: Control name Name of the control to be used. <Drag and Drop>: Constant Identifies the behavior of the source control for Drag and Drop. | | dndAuto | The drag-and-drop operation is managed automatically | dndInactive | Drag and Drop is disabled for this control | 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|