|
|
|
|
|
- Overview
- Controls taken into account by the programmed Drag and Drop
- Principle
- Programmed Drag and Drop - Simplified mode
Drag-and-drop operation set programmatically
The programmed Drag and Drop is used to entirely manage Drag/Drop between the different types of controls. Depending on its type, the control can be source or target of Drag and Drop. This help page presents: Detailed examples for using the programmed Drag and Drop are available: Controls taken into account by the programmed Drag and Drop To perform a programmed Drag and Drop between several controls of a WINDEV application or WEBDEV site: - In the initialization code of the source control:
- Define that a programmed "Drag and Drop" will be performed (DndSource property).
- Define the procedure run at the beginning of the "Drag" action (DnDEvent for the dndBeginDrag event).
- In the initialization code of the target control:
- Define that a programmed "Drag and Drop" will be performed (DndTarget property).
- Define the procedure run when hovering the control (DnDEvent for the dndDragOver event). In this procedure, you have the ability to define the mouse cursor with DnDCursor.
- Define the procedure run during the "Drop" on the control (DnDEvent for the dndDrop event).
- In each one of the WLanguage procedures called, define the action to run via the "Drag and Drop" functions of WLanguage.
Related Examples:
|
Unit examples (WINDEV): Drag and drop
[ + ] Using Drag & Drop with the WLanguage functions. The following topics are presented in this example: 1/ How to manage Drag&Drop between WINDEV controls 2/ How to manage Drag&Drop from the Windows file explorer to a WINDEV control Drag & Drop is used to move objects via the mouse. "Drag" consists in clicking an object and moving the mouse while keeping the left button down. "Drop" consists in releasing the left mouse button. Drag & Drop can be used with WINDEV on the List Box, TreeView, Table and Image controls.
|
|
Unit examples (WEBDEV): The features of Drag And Drop HTML5
[ + ] Using the Drag n Drop HTML 5 features in a WEBDEV site.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|