Drag and Drop
Starting with version 1.7, QGrid supports 4D's drag and drop mechanism fully. The old, private drag and drop (available since early QGrid versions) still works in 1.7, but it should be regarded as deprecated and will be removed at some point in the future.
QGrid's private mechanism has worked reliably for years, but it only works within an area or between QGrid areas. It does not support interaction with other 4D objects, and thus it has to be replaced with 4D's mechanism.
Therefore, implementing the new drag and drop mechanism in your projects is highly recommended. It will enable a superior user experience and it will let you steer clear of bumps when the old mechanism will no longer be there.
Working with the new drag and drop
To activate the new (4D's) drag and drop mechanism for a QGrid area, use the draggable and/or droppable properties for the area object in 4D's form editor.
If the QGrid area's draggable form object property is selected, the plug-in will act as a drag source using 4D's drag and drop mechanism.
If the QGrid area's droppable form object property is selected, the plug-in will act as a drop target using 4D's drag and drop mechanism.
When both the old and the new mechanism is activated for a QGrid area, the new mechanism (4D's drag and drop) takes precedence.
The group consists of the following commands:
|QG_SetDragOptions||Configure drag+drop feedback options for a QGrid area|
|QG_GetDragOptions||Get the drag+drop feedback options for a QGrid area|
|QG_GetDropCell||Get the cell where a drop event occurred|