View previous topic :: View next topic |
Author |
Message |
CyberShadow Site Admin
Joined: 29 Dec 2006 Posts: 21 Location: Moldova, Eastern Europe
|
Posted: Mon Dec 17, 2007 6:06 am Post subject: Setting clipboard text |
|
|
Is there a way to do this with DFL?
both
Clipboard.setText(cast(ubyte[])"Hello world!");
and
Clipboard.setString("Hello world!");
put DataObject and OlePrivateData in the clipboard, but no text formats.
Or is the DFL clipboard code never meant to be used for non-OLE stuff? |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Mon Dec 17, 2007 7:45 am Post subject: Re: Setting clipboard text |
|
|
It works with text/strings. Perhaps you need to set the persist parameter to true, so that the clipboard remains set after your program exits. |
|
Back to top |
|
|
CyberShadow Site Admin
Joined: 29 Dec 2006 Posts: 21 Location: Moldova, Eastern Europe
|
Posted: Mon Dec 17, 2007 10:40 am Post subject: |
|
|
Thanks, that was it (and also a missing call to OleInitialize in the relevant thread). |
|
Back to top |
|
|
|