From 2e103dfe953ebd108ce208d3e46173e5f92bd774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20R=C4=83ceanu?= Date: Mon, 31 Aug 2015 21:08:34 +0300 Subject: [PATCH] Explain toolbar sample actions better Added messages to show that Copy tool intentionally influences Print tool and Cut tool influences Help tool, as this is rather unexpected behaviour and could be seen as a bug. --- samples/toolbar/toolbar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/toolbar/toolbar.cpp b/samples/toolbar/toolbar.cpp index e9a0d04514..3c50615e55 100644 --- a/samples/toolbar/toolbar.cpp +++ b/samples/toolbar/toolbar.cpp @@ -861,6 +861,7 @@ void MyFrame::DoEnablePrint() wxToolBarBase *tb = GetToolBar(); tb->EnableTool(wxID_PRINT, !tb->GetToolEnabled(wxID_PRINT)); + m_textWindow->AppendText("Print tool state changed.\n"); } void MyFrame::DoDeletePrint() @@ -870,6 +871,7 @@ void MyFrame::DoDeletePrint() wxToolBarBase *tb = GetToolBar(); tb->DeleteTool( wxID_PRINT ); + m_textWindow->AppendText("Print tool was deleted.\n"); m_nPrint--; } @@ -878,6 +880,7 @@ void MyFrame::DoToggleHelp() { wxToolBarBase *tb = GetToolBar(); tb->ToggleTool( wxID_HELP, !tb->GetToolState( wxID_HELP ) ); + m_textWindow->AppendText("Help tool was toggled.\n"); } void MyFrame::OnToggleSearch(wxCommandEvent& WXUNUSED(event))