On 12/04/2012 05:23, John Labenski wrote: > Is that what you're doing or are you trying to get HTML data from copying from some other program?
I'm trying to get HTML clipboard data from Firefox/Chrome; they register a format called "HTML Format" at runtime, which has a different internal ID to CF_HTML/wxDF_HTML, and the ID changes every time Windows is restarted. fmt = wx.wxDataFormat("HTML Format") print(fmt:GetType(), wx.wxClipboard.Get():IsSupported(fmt)) -- 49358 true fmt = wx.wxDataFormat(wx.wxDF_HTML) print(fmt:GetType(), wx.wxClipboard.Get():IsSupported(fmt)) -- 30 false I've checked this against a clipboard inspection tool and it matches the actual contents of the clipboard, so registering the DataFormat seems to be working. > If all you want is HTML from the some other program in the clipboard, > use wxDF_HTML and don't bother with the wxLuaDataObjectSimple, see : > http://wxlua.sourceforge.net/docs/wxluaref.html#wxDataFormatId Is this possible without using a DataObjectSimple? From looking at the manual, DataFormatId is only used by DataFormat, which is only used by DataObjectSimple. ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users