ui.DragDrop methods

 

ui.DragDrop methods are used to control the events caused by Drag&Drop actions.

 

For this purpose, you have to declare the ui.DragDrop object with a DEFINE statement:

 

DEFINE dd_object ui.DragDrop

 

ui.DragDrop object is used as a parameter by the Drag and Drop dialog control blocks.

 

ui.DragDrop.SetOperation()

specifies the default Drag&Drop event (copy or move)

ui.DragDrop.GetOperation()

returns the current Drag&Drop event (copy or move)

ui.DragDrop.AddPossibleOperation()

specifies additional operations for the Drag&Drop event (copy, move, or null)

ui.DragDrop.GetLocationRow()

returns an integer index of the target list row to which the cursor will move during the Drag&Drop event

ui.DragDrop.GetLocationParent()

in TreeVIew, specifies whether the dragged object is dropped to the destination object as a sibling or a child node

ui.DragDrop.SetFeedback()

specifies the appearance of the Drag&Drop target object

ui.DragDrop.SetBuffer()

passes the text of a dragged object from the 4GL application to an external one

ui.DragDrop.GetBuffer()

retrieves data from the Drag&Drop buffer

ui.DragDrop.SetMimeType()

sets the MIME type that will be used during Drag&Drop

ui.DragDrop.SelectMimeType()

ensures that the data is available in the format specified by the MIME type

ui.DragDrop.getSelectedMimeType()

returns a string value identifying the currently used MIME type

ui.DragDrop.DropInternal()

is used within the ON DROP block to allow dragging and dropping within one and the same object (allows changing and moving rows together with corresponding cell attributes)