src/toolbars/TranscriptionToolBar.cpp
/// This is a convenience function that allows for button creation in
/// MakeButtons() with fewer arguments
/// Very similar to code in ControlToolBar...
This is a convenience function that allows for button creation in
MakeButtons() with fewer arguments
Very similar to code in ControlToolBar
This is a convenience function that allows for button creation in MakeButtons () with fewer arguments Very similar to code in ControlToolBar
AButton *TranscriptionToolBar::AddButton(
   TranscriptionToolBar *pBar,
   teBmps eFore, teBmps eDisabled,
   int id,
   const TranslatableString &label)
{
   AButton *&r = pBar->mButtons[id];
   r = ToolBar::MakeButton(pBar,
      bmpRecoloredUpSmall, bmpRecoloredDownSmall, bmpRecoloredUpHiliteSmall,bmpRecoloredHiliteSmall,
      eFore, eFore, eDisabled,
      wxWindowID(id),
      wxDefaultPosition,
      false,
      theTheme.ImageSize( bmpRecoloredUpSmall ));
   r->SetLabel(label);
   pBar->Add( r, 0, wxALIGN_CENTER );
   return r;
}
AButton * TranscriptionToolBar :: AddButton ( TranscriptionToolBar * pBar , teBmps eFore , teBmps eDisabled , int id , const TranslatableString & label ) { AButton * & r = pBar -> mButtons [ id ] ; r = ToolBar :: MakeButton ( pBar , bmpRecoloredUpSmall , bmpRecoloredDownSmall , bmpRecoloredUpHiliteSmall , bmpRecoloredHiliteSmall , eFore , eFore , eDisabled , wxWindowID ( id ) , wxDefaultPosition , false , theTheme . ImageSize ( bmpRecoloredUpSmall ) ) ; r -> SetLabel ( label ) ; pBar -> Add ( r , 0 , wxALIGN_CENTER ) ; return r ; }
This is a convenience function that allows for button creation in
MakeButtons() with fewer arguments
Very similar to code in ControlToolBar...
This is a convenience function that allows for button creation in MakeButtons () with fewer arguments Very similar to code in ControlToolBar ...
// JKC: Unlike ControlToolBar, does not have a focus rect.  Shouldn't it? // r->SetFocusRect( r->GetRect().Deflate( 4, 4 ) );