added TOOL_RCLICKED test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2334fef6ea
commit
e052a316bf
@ -119,6 +119,7 @@ public:
|
||||
void OnToolbarStyle(wxCommandEvent& event);
|
||||
|
||||
void OnToolLeftClick(wxCommandEvent& event);
|
||||
void OnToolRightClick(wxCommandEvent& event);
|
||||
void OnToolEnter(wxCommandEvent& event);
|
||||
|
||||
void OnCombo(wxCommandEvent& event);
|
||||
@ -228,6 +229,7 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame)
|
||||
EVT_COMBOBOX(ID_COMBO, MyFrame::OnCombo)
|
||||
|
||||
EVT_TOOL_ENTER(ID_TOOLBAR, MyFrame::OnToolEnter)
|
||||
EVT_TOOL_RCLICKED(wxID_ANY, MyFrame::OnToolRightClick)
|
||||
|
||||
EVT_UPDATE_UI(wxID_COPY, MyFrame::OnUpdateCopyAndCut)
|
||||
EVT_UPDATE_UI(wxID_CUT, MyFrame::OnUpdateCopyAndCut)
|
||||
@ -623,6 +625,12 @@ void MyFrame::OnToolLeftClick(wxCommandEvent& event)
|
||||
}
|
||||
}
|
||||
|
||||
void MyFrame::OnToolRightClick(wxCommandEvent& event)
|
||||
{
|
||||
m_textWindow->AppendText(
|
||||
wxString::Format(_T("Tool %d right clicked.\n"), event.GetInt()));
|
||||
}
|
||||
|
||||
void MyFrame::OnCombo(wxCommandEvent& event)
|
||||
{
|
||||
wxLogStatus(_T("Combobox string '%s' selected"), event.GetString().c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user