-void wxToolBar::Press()
-{
- wxCHECK_RET( m_toolCurrent, _T("no tool to press?") );
-
- wxLogTrace(_T("toolbar"),
- _T("Button '%s' pressed."),
- m_toolCurrent->GetShortHelp().c_str());
-
- // this is the tool whose state is going to change
- m_toolPressed = (wxToolBarTool *)m_toolCurrent;
-
- // we must toggle it regardless of whether it is a checkable tool or not,
- // so use Invert() and not Toggle() here
- m_toolPressed->Invert();
-
- RefreshTool(m_toolPressed);
-}
-
-void wxToolBar::Release()
-{
- wxCHECK_RET( m_toolPressed, _T("no tool to release?") );
-
- wxLogTrace(_T("toolbar"),
- _T("Button '%s' released."),
- m_toolCurrent->GetShortHelp().c_str());
-
- wxASSERT_MSG( m_toolPressed->IsInverted(), _T("release unpressed button?") );
-
- m_toolPressed->Invert();
-
- RefreshTool(m_toolPressed);
-}
-
-void wxToolBar::Toggle()