%dr - OnDragDrop Callback

Purpose

To provide a call-back that is called when a file or a group of files is dragged and dropped onto the window.

Syntax

winio@('%dr',cb_func)
external cb_func

Description

Use a call to CLEARWIN_STRING@('DROPPED_FILE') within the call-back in order to get the name of the file that has been dropped. If there is more than one file then the call-back function is called for each in turn. You can use CLEARWIN_INFO@('DROPPED_COUNT') to get the number of files that have been dropped (call this n say) and then use CLEARWIN_INFO@('DROPPED_CURRENT') to get the index of the current file in the range from 1 to n.

Example

See Drag and drop.

See also

%fs (Directory for File Dialog), %ft (Filter for File Dialog), GET_FILTERED_FILE@

 

 

 

Basket
Empty
 
Copyright © 1999-2020 Silverfrost Limited