[wxlua-users] client data in wxChoice

2014-01-27 Thread Moses McKnight
Hi, I am using wxlua which is embedded in a program using wxwidgets 2.8.12. I am trying to set client data to items in a wxChoice something like this like this: somenumber = 3 cbJointType:Append("Bevel", somenumber) But if I try to get the client data later it just always returns 0.

Re: [wxlua-users] bindings.wx.lua correction

2014-01-27 Thread John Labenski
On Sun, Jan 5, 2014 at 10:20 AM, Andre Arpin wrote: > please change line 512 to: > t[i][3] = string.format("0x%X", t[i][2] < 0 and 2^32 + t[i][2] or t[i][2]) > > Thanks for the patch, applied to svn head. Regards, John > or > > t[i][3] = string.format(((t[i][2] < 0) and '-' or '') ..

Re: [wxlua-users] wxWindow's GetHandle() can't return the right value

2014-01-27 Thread John Labenski
On Thu, Jan 2, 2014 at 10:42 PM, 周训华 <[email protected]> wrote: > Hi, > I'm trying make application by wxLua。I want to post/send windows > message(in C++) to wxWindow(created in lua ),so I need get the window's > handle. But the class "wxWindow" 's method "void* GetHandle" can not return > a right

Re: [wxlua-users] Deprecated: GetBeginIter(), GetEndIter1() and GetEndIter2()

2014-01-27 Thread John Labenski
On Sun, Jan 5, 2014 at 10:09 PM, Paul K wrote: > Hi John, > > It appears that GetBeginIter(), GetEndIter1() and GetEndIter2() have > been deprecated in the favor of GetBeginIter(), GetEndIter1() and > GetEndIter2(). > > #if WXWIN_COMPATIBILITY_2_8 > // use GetBeginIter(), GetEndIter1() and

Re: [wxlua-users] Deprecated: GetBeginIter(), GetEndIter1() and GetEndIter2()

2014-01-27 Thread Paul K
> I have started to update wxLua for wxWidgets 3.0 without WX_COMPATIBILITY_2_8 > defined, but there are far more changes than I expected and it will take a > few more days. Great; thank you. > Note that wxLua builds ok with compat 28 defined in wx30. Right; this is exactly how I compiled it

Re: [wxlua-users] How to provide wxApp::MacNewFile, wxApp::MacOpenFiles, and wxApp:MacReopenApp methods?

2014-01-27 Thread John Labenski
On Wed, Jan 22, 2014 at 1:57 PM, Paul K wrote: > Hi John, > > > I'm looking for a way to provide MacNewFile, MacOpenFiles, and > > MacReopenApp methods > > (http://docs.wxwidgets.org/trunk/classwx_app.html), but can't figure > > out how to do this in wxlua and don't see this in any of the

Re: [wxlua-users] How to implement URLDropTarget similar to wxLuaFileDropTarget

2014-01-27 Thread John Labenski
On Thu, Jan 23, 2014 at 10:24 PM, Paul K wrote: > Hi John, > > Thank you for adding wxLuaFileDropTarget and TextDropTarget; these > work well for me. Now I'm trying to detect URLs dropped from the > browser, but I can't it to work. I'm looking at an example here > ( >

Re: [wxlua-users] client data in wxChoice

2014-01-27 Thread John Labenski
On Mon, Jan 27, 2014 at 8:33 PM, Moses McKnight wrote: > Hi, > > I am using wxlua which is embedded in a program using wxwidgets 2.8.12. > > I am trying to set client data to items in a wxChoice something like > this like this: > > somenumber = 3 > cbJointType:Append("Bevel", somenumber) > > But

Re: [wxlua-users] How to provide wxApp::MacNewFile, wxApp::MacOpenFiles, and wxApp:MacReopenApp methods?

2014-01-27 Thread Paul K
Hi John, >> I'm looking for a way to provide MacNewFile, MacOpenFiles, and >> MacReopenApp methods > They need to be added, it should be doable. This would be great; thank you! > I'll try to remember, these. I'm glad you have an alternative for wxRegKey, I > would > rather not add it.