Hi Jane,
Attached is a sample that now works. It contains also a few comments on how to set the offsets. I had to make a very simple fix in the Windows driver to enable the multiple format copy. Just committed to the CVS. It will be available in the pre-compiled binaries at the next version scheduled to April 2013. Thanks for the clipboard tool tip. It was very useful. Best, Scuri From: Jane Taubman [mailto:[email protected]] Sent: quinta-feira, 6 de dezembro de 2012 1:43 To: IUP discussion list. Subject: Re: [Iup-users] iup,clipboard - creating an html clip On 6 December 2012 11:48, Antonio Scuri <[email protected]> wrote: clipboard = iup:clipboard() clipboard.addformat = 'HTML Format' clipboard.format = 'HTML Format' clipboard.formatdatasize = htmltemplate:len()+1 clipboard.formatdata = htmltemplate Thanks for taking the time to look at this for me. I have tried that and it works to an extent, I can't work out the fragment positions either, but will experiment. However only being able to put one format in does pose a slight problem as Windows does not seem to auto populate the other formats. So if I copy in the sample, it only exists in HTML Format and can not be pasted to a text editor which only accepts text. This is not a problem for the task in hand, but it would be helpful to be able to do this, when you have the time to look at it. I am away myself from tomorrow and will be "off grid" for a week or so. If it's any help I use a free windows clipboard tool called CLCL <http://www.nakka.com/soft/clcl/index_eng.html> which displays the contents of the clipboard and the formats it contains and makes it easy to see the formats. -- Jane. Jane Taubman | www.rjt.org.uk | www.taubman.org.uk |www.fhug.org.uk
html_clipboard.lua
Description: Binary data
------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________ Iup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/iup-users
