controls.cpp didn't compile - missing MyTextCtrl declaration added (and what
OnRightButton is supposed to do?) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -127,8 +127,19 @@ bool MyApp::OnInit(void)
|
|||||||
// MyTextCtrl
|
// MyTextCtrl
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
class MyTextCtrl : public wxTextCtrl
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
MyTextCtrl( wxWindow *parent, wxWindowID id, const wxString &value,
|
||||||
|
const wxPoint &pos, const wxSize &size, int style );
|
||||||
|
|
||||||
|
void OnRightButton(wxCommandEvent&) { }
|
||||||
|
|
||||||
|
DECLARE_EVENT_TABLE()
|
||||||
|
};
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(MyTextCtrl, wxTextCtrl)
|
BEGIN_EVENT_TABLE(MyTextCtrl, wxTextCtrl)
|
||||||
EVT_RIGHT_DOWN (MyTextCtrl::OnRightButton)
|
EVT_RIGHT_DOWN(MyTextCtrl::OnRightButton)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
MyTextCtrl::MyTextCtrl( wxWindow *parent, wxWindowID id, const wxString &value,
|
MyTextCtrl::MyTextCtrl( wxWindow *parent, wxWindowID id, const wxString &value,
|
||||||
@@ -386,7 +397,7 @@ END_EVENT_TABLE()
|
|||||||
MyFrame::MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h):
|
MyFrame::MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h):
|
||||||
wxFrame(frame, -1, title, wxPoint(x, y), wxSize(w, h))
|
wxFrame(frame, -1, title, wxPoint(x, y), wxSize(w, h))
|
||||||
{
|
{
|
||||||
(void*) new MyPanel( this, 10, 10, 300, 100 );
|
(void)new MyPanel( this, 10, 10, 300, 100 );
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnQuit (wxCommandEvent& WXUNUSED(event) )
|
void MyFrame::OnQuit (wxCommandEvent& WXUNUSED(event) )
|
||||||
|
Reference in New Issue
Block a user