/***************************************************** ** ** AppMenuBar --- updateMenus ** ******************************************************/ void AppMenuBar::updateMenus( const bool &isDoc, const bool &animated ) { EnableTop( 1, isDoc ); EnableTop( 2, isDoc ); EnableTop( 3, isDoc ); filemenu->Enable( APP_FILERECENT, recentfiles.GetCount() > 0 ); if ( isDoc ) { docmenu->Check( CMD_CHILD_ANIMATE, animated ); } }
bool wxMenuBar::Enable(bool enable) { wxCHECK_MSG( IsAttached(), false, wxT("doesn't work with unattached menubars") ); size_t i; for (i = 0; i < GetMenuCount(); i++) EnableTop(i, enable); return true; }
void CDWidget::OnDiscPresent(bool whether) { EnableTop(whether); }