Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-17 Thread strawman
On 13/04/2012 23:06, John Labenski wrote: > ps. Do a SVN update. I had the signature wrong on > wxLuaDataObjectSimple::SetData() so it would never be called by > wxWidgets. Looks like this was the issue; thanks again for the help, it works perfectly now.

Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-13 Thread John Labenski
ps. Do a SVN update. I had the signature wrong on wxLuaDataObjectSimple::SetData() so it would never be called by wxWidgets. Regards, John -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know

Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-13 Thread John Labenski
On Thu, Apr 12, 2012 at 5:27 PM, strawman wrote: > 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 "HTM

Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-12 Thread strawman
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

Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-11 Thread John Labenski
On Wed, Apr 11, 2012 at 5:38 PM, strawman wrote: > > Thanks for the update; the example above works as shown, however it > doesn't seem to play nicely with the clipboard: > > fmt = wx.wxDataFormat("HTML Format") > obj = wx.wxLuaDataObjectSimple(fmt) > obj.data = "test" > function obj:GetDataHere()

Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-11 Thread strawman
On 09/04/2012 04:57, John Labenski wrote: > Usage is as follows: > > > d = wx.wxLuaDataObjectSimple(wx.wxDataFormat("asd")) > > d.data = "x" -- store the data somewhere > > print(d:SetData("aaa"), d.data, d:GetDataSize(), d:GetDataHere()) > > d.GetDataSize = function(d) ret

Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-08 Thread John Labenski
On Sat, Apr 7, 2012 at 7:40 PM, strawman wrote: >  From the wx docs for wxDataObjectSimple: > > "Notice that this is still an abstract base class and cannot be used but > should be derived from. > The objects supporting rendering the data must override GetDataSize and > GetDataHere while the objec

[wxlua-users] Deriving from wxDataObjectSimple

2012-04-07 Thread strawman
From the wx docs for wxDataObjectSimple: "Notice that this is still an abstract base class and cannot be used but should be derived from. The objects supporting rendering the data must override GetDataSize and GetDataHere while the objects which may be set must override SetData." Is it possibl