4D v13

Drag and Drop, Introduction

Home

 
4D View v13
Drag and Drop, Introduction

Drag and Drop, Introduction  


 

 

The commands and functions of this theme allow controlling drag and drop within the same 4D View area, between two 4D View areas or between a 4D area and a 4D View area.

In 4D View, drag and drop works on three principles:

  • Source object (the area where the drag takes place).
  • Target object (the area where the drop occurs).
  • Signatures allowing whether or not to authorize the drag and drop between certain areas.

The commands in this theme will be used to identify the source and the target, as well as their signatures, and to get information on the location of the target area where it will be dropped.

It is up to you to use this information depending on your needs, using other 4D View commands, for example, by copying or cutting data from the source area, and pasting it in the target area once the operation's validity has been controlled, or by executing a different operation of your choice.

4D View allows the dragging and dropping of 4D objects among the cells. Except for BLOBs, all types of 4D fields and variables can be dropped into 4D View areas.

  • In 4D, the “Draggable” property must have been selected for each object to be able to be dragged and dropped.
  • In 4D View, the constant pv DD 4D objects (PV Drag drop allowed theme) must be passed to the PV SET AREA PROPERTY command.
The signature of 4D objects is __OBJECT4D__ (each __ consists of two underlines). This internal signature cannot be modified. Simply pass this signature to the PV SET DROP SIGNATURES command in order to allow “dropping” of 4D objects.

 
PROPERTIES 

Product: 4D
Theme: PV Drag and drop