I am having difficulty getting a button to work. It's my first time trying out CodeLite and it's not going well.
In wxCrafter, I created a wxButton, then double-clicked and it automatically connected it to a wxEVT_COMMAND_BUTTON_CLICKED.
Clicking on "Generate Code" in wxCrafter automatically generated 2 virtual void event handler functions, each in:
wxcrafter.h in the Login class
LoginFrame.h in the LoginFrame class
I want the definition/actual handling to be in
LoginFrame.cpp
The problem is that in the wxcrafter.h, it automatically adds to the base class the code: event.Skip().
LoginFrame inherits from Login, and event.Skip() is in Login, so the event handler in LoginFrame.cpp is never called. The wxcrafter.h is autogenerated. When I put the true handling in wxcrafter.h, I get the desired behavior, but this .h file is overridden and erased every time the "Generate Code" is pressed in the wxCrafter.
What must I do to resolve the problem?
Thanks!