[Lazarus] HTML on clipboard

2015-03-11 Thread Michael Thompson
G'day,

Just found this code on the wiki...
http://wiki.lazarus.freepascal.org/Office_Automation#Copy_HTML_to_the_clipboard

On Windows with Microsoft products at least, this doesn't work...  What's
required is more complex:
https://msdn.microsoft.com/en-us/library/aa767917%28v=vs.85%29.aspx

However, I can't see that code being posted onto the wiki without testing,
so before I correct the wiki, I'd like to know under what conditions the
wiki code is good for...

I think it was Mattias that submitted that code to the wiki...

Mattias: Do you know or remember which platforms and applications that code
worked with?

I'm thinking that the code on the wiki is probably good for Linux and
possibly Mac, and am just looking for confirmation before I update the
wiki...

Cheers

Mike
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] HTML on clipboard

2015-03-11 Thread Michael Thompson
Mattias Gaertner nc-gaert...@netcologne.de wrote:
 Michael Thompson mike.cornfl...@gmail.com wrote:
  Mattias: Do you know or remember which platforms and applications that
code
  worked with?

 AFAIR an example is Linux, OpenOffice.
 I don't know if OO still supports this.

Sweet. I've left the original code in as a quick google shows at least
several python libraries out there that use the the 'text/html' mime on the
clipboard as well, so there's possibly more targets than just OO.

Thanks for the quick reply.

Mike
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] HTML on clipboard

2015-03-11 Thread Mattias Gaertner
On Thu, 12 Mar 2015 11:11:55 +1300
Michael Thompson mike.cornfl...@gmail.com wrote:

 G'day,
 
 Just found this code on the wiki...
 http://wiki.lazarus.freepascal.org/Office_Automation#Copy_HTML_to_the_clipboard
 
 On Windows with Microsoft products at least, this doesn't work...  What's
 required is more complex:
 https://msdn.microsoft.com/en-us/library/aa767917%28v=vs.85%29.aspx
 
 However, I can't see that code being posted onto the wiki without testing,
 so before I correct the wiki, I'd like to know under what conditions the
 wiki code is good for...
 
 I think it was Mattias that submitted that code to the wiki...
 
 Mattias: Do you know or remember which platforms and applications that code
 worked with?

AFAIR an example is Linux, OpenOffice.
I don't know if OO still supports this.

 
 I'm thinking that the code on the wiki is probably good for Linux and
 possibly Mac, and am just looking for confirmation before I update the
 wiki...


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus