- Programmed or automatic Drag and Drop
- Limit
DndSource (Property) In french: DndSource
For some types of controls, WINDEV and WEBDEV propose an automatic management of Drag and Drop: to do so, check the corresponding option in the "Details" tab of the control description. Then, a control can be defined as source or target of Drag and Drop. The automatic Drag and Drop is available: for the edit controls, the list boxes, the listviews, the treeviews. Versions 17 and later for the Upload controls, the static controls, the buttons, the links, the images, the formatted static controls, the list boxes and the combo boxes. New in version 17 for the Upload controls, the static controls, the buttons, the links, the images, the formatted static controls, the list boxes and the combo boxes. for the Upload controls, the static controls, the buttons, the links, the images, the formatted static controls, the list boxes and the combo boxes.
During a Programmed Drag and Drop, ..DndSource and ..DndTarget are used to define the source and target controls for Drag and Drop. ..DndSource is used to find out and modify the behavior of a control (edit control, list box, listview, looper, treeview, ...) during Drag and Drop. This control will be defined as source for Drag and Drop, which means that Drag and Drop will be performed from this control. Versions 17 and later New in version 17
// -- Initialize the LIST_Source list // LIST_Source is not a target LIST_Source..DndSource = dndInactive
// -- Initialize the LIST_Target list 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
<Management of Drag and Drop> = <Control used>..DndSource
<Management of Drag and Drop>: Constant Identifies the behavior of the source control for Drag and Drop: | | dndAuto | Automatic management of Drag and Drop | dndInactive | Drag and Drop is disabled for this control | dndProgram | Drag and Drop from this control must be managed by the developer |
<Control used>: Control name Name of control to use.
Modifying the behavior of a source control for Drag and Drop Hide the details
<Control used>..DndSource = <Management of Drag and Drop>
<Control used>: Control name Name of control to use. <Management of Drag and Drop>: Constant Identifies the behavior of the source control for Drag and Drop. | | dndAuto | Automatic management of Drag and Drop | dndInactive | Drag and Drop is disabled for this control | dndProgram | Drag and Drop from this control must be managed by the developer |
Remarks Programmed or automatic Drag and Drop Versions 17 and later New in version 17Limit Versions 17 and later New in version 17
This page is also available for…
|
|
|