The current version of wxlua works great. I use the multilib DLL version with 
on window. I have to remove the dbgrid GetRef but it is a minor difficulty. 
Thanks for alll the works. luac does not compile in only this mode is used but 
it relly does not matter. 

Since baseclassName does not seem to be an index for wxCLASS_TableByName
[evtClassName]

I made the following changes to controls.wx.lua
--------------------
added UnhandledEvents as a global table and change the function OnEvent.
-------------------- modifications
    while wxEvent_GetFuncs[evtClassName] do
        if type(wxEvent_GetFuncs[evtClassName]) == "table" then
            s = s.."\n\t"..evtClassName.." - "..FuncsToString(event, 
wxEvent_GetFuncs[evtClassName], evtClassName)
        else
            s = s.."\n\t"..evtClassName.." - "..wxEvent_GetFuncs[evtClassName]
(event)
        end
        if wxCLASS_TableByName[evtClassName].baseclassNames and next
(wxCLASS_TableByName[evtClassName].baseclassNames) then 
            _, evtClassName = next(wxCLASS_TableByName
[evtClassName].baseclassNames)
        else
            break
        end
    end

    -- for debugging, this means we need to add it to the wxEvent_GetFuncs 
table
    if evtClassName ~= "wxObject"  then
        s='UNHANDLED EVENT: '..s
        if not UnhandledEvents[evtClassName] then
            print("Unhandled wxEventXXX type in OnEvent:", evtClassName)
            UnhandledEvents[evtClassName] = true
        end
    end

Thank you

Andre

I use next(table) to avoid checking for an existing index. Many other ways 
would work.


------------------------------------------------------------------------------
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to