FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Setting clipboard text

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
CyberShadow
Site Admin


Joined: 29 Dec 2006
Posts: 21
Location: Moldova, Eastern Europe

PostPosted: Mon Dec 17, 2007 6:06 am    Post subject: Setting clipboard text Reply with quote

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Mon Dec 17, 2007 7:45 am    Post subject: Re: Setting clipboard text Reply with quote

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
View user's profile Send private message
CyberShadow
Site Admin


Joined: 29 Dec 2006
Posts: 21
Location: Moldova, Eastern Europe

PostPosted: Mon Dec 17, 2007 10:40 am    Post subject: Reply with quote

Thanks, that was it (and also a missing call to OleInitialize in the relevant thread).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group