Reviewed and revised December 2023
tab(-10, AG_DRAGDROP); opcode, ctlid {,fidx}; chr(127); Tab(-10,x) Syntax Notes
AG_DRAGDROP (112) implements both destructive and non-destructive drag-drop modes.
This function has both a subroutine and a print tab implementation.
Parameters
opcode
Value |
Description |
---|---|
0 |
query drop buffer, set status parameter to the number of files in the drop target (ctlid) |
1 |
retrieve fspec corresponding to fidx from the specified drop target (ctlid) |
2 |
clear the contents of the drop target buffer |
3 |
set non-destructive (previous "asynchronous") mode |
ctlid
control ID of the target control
Response
status, fspec CR
status values: <=0 indicates failure, or no files available in opcode 0; >0 indicates success (number of files for opcode 0 or the number of bytes in fspec for opcode 1)
fspec is the file specification in opcode 1
See MX_DRAGDROP for additional details and parameters.