On 2/21/07, Steve <[EMAIL PROTECTED]> wrote: > 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
Please see http://wxlua.sourceforge.net/docs/wxlua.html and search for "wxEVT_XXX for wxEvtHandler::Connect". In wxLua you must use dynamic event connection and not the static EVT_XXX(...) handlers since they are actually preprocessor macros that only work at compile time. In fact there is occasional talk in the wxWidgets forums to remove the preprocessor event handler connect macros eventually so no work will be done to try to emulate them. "Window" ids are just numbers to help you track GUI items, like windows, buttons, menu items, etc. Hope this helps, John Labenski ------------------------------------------------------------------------- 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 wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users