4D Write v14Drag and Drop, Introduction |
||
|
4D Write v14
Drag and Drop, Introduction
Drag and Drop, Introduction
4D Write lets you carry out drag-and-drop operations within the same 4D Write area, between two different 4D Write areas or between a 4D Write area and a 4D area. Drag and drop can be used by default (standard mode) or programmed. By default, 4D Write offers standard automatic handling of drag and drop, based on the moving or copying of text or pictures: a selection of text or a picture can be moved using the mouse. With this type of drag and drop, no specific programming is required; you just need to apply the appropriate “Draggable” and “Droppable” properties when you want to drag and drop inside 4D forms (see below). You can drag and drop data between 4D Write areas and 4D objects. Warning: To drag textual data from a 4D field or variable into a 4D Write area, you must hold down the Alt (Windows) or Option (Mac OS) key during the operation.
The default drag and drop of 4D Write lets you set up intuitive interfaces and in general contributes to better ergonomics.
In this case, you must combine the commands for managing drag and drop in 4D with those of 4D Write. First of all, you need to be sure that the On Drag Over and/or On Drop form events have been checked for the objects used. You can set the drag and drop properties for the 4D Write area using the WR GET AREA PROPERTY and WR SET AREA PROPERTY commands. If you want to control the type of 4D objects being moved precisely, you must use the 4D DRAG AND DROP PROPERTIES command. 4D commands let you carry out any type of action in response to a drag and drop. In the case of a drag and drop between two 4D Write areas, you can find out the area from which the data have been dragged using the WR GET DRAG SOURCE command. You can find out the area into which the 4D object has been dropped using the WR GET DROP TARGET command as well as the exact position of the insertion point when the object was dropped (WR GET DROP INFO command): area (header, footer, body) and location of cursor. |
PROPERTIES
Product: 4D Write ARTICLE USAGE
4D Write Language ( 4D Write v11.6) |