Good day! Please tell me how to copy folders from wxGenericDirCtrl to clipboard.
The wxClipboard object accepts objects derived from the wxDataObject class. Base derived classes do not support folders. Apparently need to create a custom class based on wxDataObject. Tell me, maybe someone came across such a problem.
Copying folders to the clipboard
-
- Knows some wx things
- Posts: 31
- Joined: Thu Mar 08, 2018 7:40 am
-
- Moderator
- Posts: 19164
- Joined: Fri Apr 21, 2006 8:03 pm
- Location: $FCE2
Re: Copying folders to the clipboard
Are you saying that you tried wxFileDataObject and it does not work with folders?
Use the source, Luke!
-
- Knows some wx things
- Posts: 31
- Joined: Thu Mar 08, 2018 7:40 am
Re: Copying folders to the clipboard
Sorry, everything works. I didn't pass the folder path in the addFile method