PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
  • Programmed or automatic Drag and Drop
  • Limit
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
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:
  • WINDEV for the edit controls, the list boxes, the listviews, the treeviews.
  • Versions 17 and later
    WEBDEV - Server code 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
    WEBDEV - Server code for the Upload controls, the static controls, the buttons, the links, the images, the formatted static controls, the list boxes and the combo boxes.
    WEBDEV - Server code 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
WEBDEV - Server code This property is now available for the controls found in the WEBDEV sites.
PHP This property is now available for the PHP sites.
New in version 17
WEBDEV - Server code This property is now available for the controls found in the WEBDEV sites.
PHP This property is now available for the PHP sites.
WEBDEV - Server code This property is now available for the controls found in the WEBDEV sites.
PHP This property is now available for the PHP sites.
Example
// -- 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 Name>..DndSource
<Management of Drag and Drop>: Constant
Identifies the behavior of the source control for Drag and Drop:
dndAutoAutomatic management of Drag and Drop
dndInactiveDrag and Drop is disabled for this control
dndProgramDrag and Drop from this control must be managed by the developer
<Control Name>: Character string (with or without quotes)
Name of control to use.

Modifying the behavior of a source control for Drag and Drop Hide the details

<Control Name>..DndSource = <Management of Drag and Drop>
<Control Name>: Character string (with or without quotes)
Name of control to use.
<Management of Drag and Drop>: Constant
Identifies the behavior of the source control for Drag and Drop.
dndAutoAutomatic management of Drag and Drop
dndInactiveDrag and Drop is disabled for this control
dndProgramDrag and Drop from this control must be managed by the developer
Remarks

Programmed or automatic Drag and Drop

WINDEVJava An automatic Drag and Drop is available for the edit controls, the list boxes, the listviews, the treeviews and the tables.
A programmed Drag and Drop is available for the following controls:
  • Edit control
  • List box and listview
  • TreeView
  • Table
  • Image
  • Bar code
  • Button
  • Looper
  • Chart
  • TreeView table
  • Calendar
  • Organizer
  • Scheduler
Java Only the automatic Drag and Drop is available.
Versions 17 and later
WEBDEV - Server code An automatic Drag and Drop is available for the following controls:
  • Upload control,
  • Static,
  • Button,
  • Link,
  • Image,
  • Formatted static,
  • Edit control,
  • List box,
  • Combo box.
The programmed Drag and Drop is also used to manage the cells, supercontrols and control templates.
New in version 17
WEBDEV - Server code An automatic Drag and Drop is available for the following controls:
  • Upload control,
  • Static,
  • Button,
  • Link,
  • Image,
  • Formatted static,
  • Edit control,
  • List box,
  • Combo box.
The programmed Drag and Drop is also used to manage the cells, supercontrols and control templates.
WEBDEV - Server code An automatic Drag and Drop is available for the following controls:
  • Upload control,
  • Static,
  • Button,
  • Link,
  • Image,
  • Formatted static,
  • Edit control,
  • List box,
  • Combo box.
The programmed Drag and Drop is also used to manage the cells, supercontrols and control templates.

Limit

WINDEV ..DndSource can only be used with the following controls:
  • edit controls,
  • List Box controls,
  • ListView controls,
  • TreeView controls,
  • Looper controls,
  • Image controls,
  • Chart controls,
  • Table controls,
  • TreeView Table controls,
  • Calendar controls,
  • Versions 15 and later
    Organizer controls,
    New in version 15
    Organizer controls,
    Organizer controls,
  • Versions 16 and later
    Scheduler controls,
    New in version 16
    Scheduler controls,
    Scheduler controls,
  • Versions 17 and later
    Button controls,
    New in version 17
    Button controls,
    Button controls,
  • Versions 17 and later
    Rating controls.
    New in version 17
    Rating controls.
    Rating controls.
Java ..DndSource only applies to the edit controls, list boxes and treeviews.
Versions 17 and later
WEBDEV - Server code ..DndSource can only be used with the following controls:
  • the edit controls,
  • the buttons,
  • the static controls,
  • the links,
  • the images,
  • the formatted static controls,
  • the list boxes,
  • the combo boxes,
  • the cells,
  • the supercontrols,
  • the control templates.
  • Versions 19 and later
    the rich text areas.
    New in version 19
    the rich text areas.
    the rich text areas.
New in version 17
WEBDEV - Server code ..DndSource can only be used with the following controls:
  • the edit controls,
  • the buttons,
  • the static controls,
  • the links,
  • the images,
  • the formatted static controls,
  • the list boxes,
  • the combo boxes,
  • the cells,
  • the supercontrols,
  • the control templates.
  • Versions 19 and later
    the rich text areas.
    New in version 19
    the rich text areas.
    the rich text areas.
WEBDEV - Server code ..DndSource can only be used with the following controls:
  • the edit controls,
  • the buttons,
  • the static controls,
  • the links,
  • the images,
  • the formatted static controls,
  • the list boxes,
  • the combo boxes,
  • the cells,
  • the supercontrols,
  • the control templates.
  • Versions 19 and later
    the rich text areas.
    New in version 19
    the rich text areas.
    the rich text areas.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment