I've solved the problem by reading through the calculator demo
Turns out there is/was something fundamentally wrong with my understanding.
I assumed I was allocating and refferencing eventID's turns out I was
allocating windowID's
This means that I my connect function should have looked like
<snip>
dlg_server_connect:Connect(EVT_CONNECT_BUTTON_CLICKED,wx.wxEVT_COMMAND_BUTTON_CLICKED,
function (event)
print("You
clicked a button, woohoo!")
frame:SetStatusText("Connect was Clicked")
dlg_server_connect:Close(true)
end) --Connect the event Handler
</snip>
Instead of what I had previously, furthermore I should have named that
EVT_CONNECT_BUTTON_CLICKED to something more like ID_CONNECT_BUTTON
Oh well live and learn, time to refactor!
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users