Пример #1
0
/// This hides the floating toolbar, effectively 'hiding' the window
void ToolBarMiniFrame::OnClose() 
{
   mDockButton->Toggle();
   AudacityProject * p = GetActiveProject();
   ToolBarStub * tbs = ToolBarFrame::GetToolBar()->GetToolBarStub();
   p->FloatToolBar(tbs);
} 
Пример #2
0
void ToolBarMiniFrame::OnMouseEvent(wxMouseEvent& evt)
{

   //The following is prototype code for allowing a double-click
   //close the toolbar.  Commented out in lieu of a close button
   //that is being tested.

#if 0
     if(evt.ButtonDClick(1))
      {
         AudacityProject * p  = GetActiveProject();
         ToolBar* tb = ToolBarFrame::GetToolBar();
         ToolBarStub *tbs= tb->GetToolBarStub();
         p->FloatToolBar(tbs);
      }
#endif
}