Back to product page

ActionPaste event


Fires when user selects paste from the context menu.

Syntax

  • Basic
Private Sub object_ActionPaste(Item, Allow)
The ActionPaste(object,Item,Allow) syntax has these parts:
objectA wodFtpDLX object.
ItemA DirItem object. Reference to Item that will receive clipboard contents.
AllowA Boolean value. When set to False then action is ignored.

Remarks

Available only in ActiveX (GUI) version!

When user selects 'Paste' from the Context menus, wodFtpDLX will internally paste contents of the Clipboard (if possible) to remote file. It is assumed that Item argument points to valid item. If user selects background and assumes it will paste files - it will be rejected at this point (left for future versions of wodFtpDLX).

If you don't want user to paste to remote file, set Allow to False and wodFtpDLX will ignore this method.

Pasting to file is implemented really simple - you can do it automatically from your code if you want. Contents of Clipboard are read and sent to the file using PutData method internally. Everything else is left to main wodFtpDLX engine to deal with.

Platforms

Windows