module Iup::DragDropAttributes

defines attributes and methods for drag and drop

Steps to use the Drag & Drop support in an IUP application:

AT SOURCE
  • Enable the element as source using the attribute DRAGSOURCE=YES;

  • Define the data types supported by the element for the drag operation using the DRAGTYPES attribute;

  • Register the required callbacks DRAGBEGIN_CB, DRAGDATASIZE_CB and DRAGDATA_CB for drag handling. DRAGEND_CB is the only optional drag callback, all other callbacks and attributes must be set.

AT TARGET
  • Enable the element as target using the attribute DROPTARGET=YES;

  • Define the data types supported by the element for the drop using the DROPTYPES attribute;

  • Register the required callback DROPDATA_CB for handling the data received. This callback and all the drop target attributes must be set too. DROPMOTION_CB is the only optional drop callback.