[beginner] problem with event
Etienne SOBOLE
etienne-nospam at tlk.fr
Thu Aug 3 01:43:25 PDT 2006
Hi!
I have this code
class MyZoomView: public wxPanel
{
public:
MyZoomView(wxWindow* parent);
virtual ~MyZoomView(){};
void OnPaint(wxPaintEvent& event);
private:
DECLARE_NO_COPY_CLASS(MyZoomView)
};
BEGIN_EVENT_TABLE(MyZoomView, wxPanel)
EVT_PAINT(MyZoomView::OnPaint)
END_EVENT_TABLE()
MyZoomView::MyZoomView(wxWindow* parent)
: wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize,
wxHSCROLL | wxVSCROLL)
{
}
void MyZoomView::OnPaint(wxPaintEvent& event)
{
...
}
and the compiler tell me
526 C:\Dev-Cpp\Projets\test.cpp ISO C++ does not permit
`wxPanel::sm_eventTable' to be defined as `MyZoomView::sm_eventTable'
Is it tell me that I could not handle event on a wxpanel ???
I've tried with a wxwindow ad the error is the same.
thank's...
More information about the wx-users
mailing list