wxLua from SVN builds successfully against wxMSW 2.9.3 with
USE_EXCEPTIONS=0 (-fno-exceptions) set in wx's config.gcc, but building
apps fails with the attached error. Using -fno-exceptions in wxLua's
makefile causes no issues.
Additionally, building apps against wx with DEBUG_FLAG = 0 set in
On 02/05/2012 04:52, John Labenski wrote:
> Sorry about the delay, I committed a fix to SVN that I hope should
> work. We've gone through this before, but I think this time it's
> right. Now we always treat Lua as UTF8.
>
> Note that it only works with wxWidgets built in Unicode mode and has
> been
On 19/04/2012 05:27, John Labenski wrote:
> What version of wxWidgets are you using? 2.8 or 2.9
This was with 2.8.12; I just built wxLua against 2.9.3 and tried again,
and it's now returning an empty string instead of nil. I'm building
with TDM-GCC, if it makes any difference.
> What is the t
With a Unicode build of wxMSW and wxLua, trying to access any string
containing multibyte characters (e.g. with wxTextCtrl::GetValue) returns
nil. The same issue is present in the wxLua editor; if any multibyte
characters are in the buffer when a script is saved, the saved file is 0
bytes in l
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.
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
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
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