+ {
+ wxRibbonPage* page = new wxRibbonPage(m_ribbon, wxID_ANY, wxT("UI Updated"), ribbon_xpm);
+ wxRibbonPanel *panel = new wxRibbonPanel(page, wxID_ANY, wxT("Enable/Disable"), ribbon_xpm);
+ wxRibbonButtonBar *bar = new wxRibbonButtonBar(panel, wxID_ANY);
+ bar->AddButton(ID_DISABLED, wxT("Disabled"), ribbon_xpm);
+ bar->AddButton(ID_ENABLE, wxT("Enable"), ribbon_xpm);
+ bar->AddButton(ID_DISABLE, wxT("Disable"), ribbon_xpm);
+ bar->AddButton(ID_UI_ENABLE_UPDATED, wxT("Enable UI updated"), ribbon_xpm);
+ bar->EnableButton(ID_DISABLED, false);
+ m_bEnabled = true;
+
+ panel = new wxRibbonPanel(page, wxID_ANY, wxT("Toggle"), ribbon_xpm);
+ bar = new wxRibbonButtonBar(panel, wxID_ANY);
+ bar->AddButton(ID_CHECK, wxT("Toggle"), ribbon_xpm);
+ bar->AddToggleButton(ID_UI_CHECK_UPDATED, wxT("Toggled UI updated"), ribbon_xpm);
+ m_bChecked = true;
+
+ panel = new wxRibbonPanel(page, wxID_ANY, wxT("Change text"), ribbon_xpm);
+ bar = new wxRibbonButtonBar(panel, wxID_ANY);
+ bar->AddButton(ID_CHANGE_TEXT1, wxT("One"), ribbon_xpm);
+ bar->AddButton(ID_CHANGE_TEXT2, wxT("Two"), ribbon_xpm);
+ bar->AddButton(ID_UI_CHANGE_TEXT_UPDATED, wxT("Zero"), ribbon_xpm);
+
+ //Also set the general disabled text colour:
+ wxRibbonArtProvider* artProvider = m_ribbon->GetArtProvider();
+ wxColour tColour = artProvider->GetColor(wxRIBBON_ART_BUTTON_BAR_LABEL_COLOUR);
+ artProvider->SetColor(wxRIBBON_ART_BUTTON_BAR_LABEL_DISABLED_COLOUR, tColour.MakeDisabled());
+ }