PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • 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:
  • Versions 17 and later
    WEBDEV - Server code for Upload, Static, Button, Link, Image, Formatted Static, List Box and Combo Box controls.
    New in version 17
    WEBDEV - Server code for Upload, Static, Button, Link, Image, Formatted Static, List Box and Combo Box controls.
    WEBDEV - Server code for Upload, Static, Button, Link, Image, Formatted Static, List Box and Combo Box controls.
In a Programmed Drag and Drop, 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.
Versions 17 and later
WEBDEV - Server code This property is now available for controls in WEBDEV sites.
PHP This property is now available for PHP sites.
New in version 17
WEBDEV - Server code This property is now available for controls in WEBDEV sites.
PHP This property is now available for PHP sites.
WEBDEV - Server code This property is now available for controls in WEBDEV sites.
PHP This property is now available for PHP sites.
Example
// -- 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

<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:
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 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 = <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.
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

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

Versions 17 and later
WEBDEV - Server code The DndSource property can only be used with the following controls:
  • edit controls,
  • buttons,
  • Static controls,
  • links,
  • images,
  • formatted Static controls,
  • list boxes,
  • combo boxes,
  • cells,
  • supercontrols,
  • control templates.
  • Versions 19 and later
    rich text areas.
    New in version 19
    rich text areas.
    rich text areas.
New in version 17
WEBDEV - Server code The DndSource property can only be used with the following controls:
  • edit controls,
  • buttons,
  • Static controls,
  • links,
  • images,
  • formatted Static controls,
  • list boxes,
  • combo boxes,
  • cells,
  • supercontrols,
  • control templates.
  • Versions 19 and later
    rich text areas.
    New in version 19
    rich text areas.
    rich text areas.
WEBDEV - Server code The DndSource property can only be used with the following controls:
  • edit controls,
  • buttons,
  • Static controls,
  • links,
  • images,
  • formatted Static controls,
  • list boxes,
  • combo boxes,
  • cells,
  • supercontrols,
  • control templates.
  • Versions 19 and later
    rich text areas.
    New in version 19
    rich text areas.
    rich text areas.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment