Update of /cvsroot/wxlua/wxLua/apps/wxluacan/src
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv20100/wxLua/apps/wxluacan/src
Modified Files:
cansim.cpp
Log Message:
change EVT_LUA_CONSOLE to EVT_LUA_PRINT
add simple wrapper for running sample using require
don't link to lua libs in luamodule
Index: cansim.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/apps/wxluacan/src/cansim.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** cansim.cpp 7 Mar 2006 11:53:42 -0000 1.8
--- cansim.cpp 14 May 2006 01:49:10 -0000 1.9
***************
*** 280,284 ****
BEGIN_EVENT_TABLE(MyApp, wxApp)
! EVT_LUA_CONSOLE (wxID_ANY, MyApp::OnLua)
EVT_LUA_ERROR (wxID_ANY, MyApp::OnLua)
EVT_LUA_DEBUG_HOOK (wxID_ANY, MyApp::OnLua)
--- 280,284 ----
BEGIN_EVENT_TABLE(MyApp, wxApp)
! EVT_LUA_PRINT (wxID_ANY, MyApp::OnLua)
EVT_LUA_ERROR (wxID_ANY, MyApp::OnLua)
EVT_LUA_DEBUG_HOOK (wxID_ANY, MyApp::OnLua)
***************
*** 310,314 ****
void MyApp::OnLua( wxLuaEvent &event )
{
! if (event.GetEventType() == wxEVT_LUA_CONSOLE)
{
wxMessageBox(event.GetString(), wxT("maskpro"));
--- 310,314 ----
void MyApp::OnLua( wxLuaEvent &event )
{
! if (event.GetEventType() == wxEVT_LUA_PRINT)
{
wxMessageBox(event.GetString(), wxT("maskpro"));
|