X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4254f672164bdc7e171c33a5663facbe6afa0833..0f4bf6ac80113f346d4fdfdd2e5ae82c6e8a6465:/samples/aui/auidemo.cpp diff --git a/samples/aui/auidemo.cpp b/samples/aui/auidemo.cpp index 570138976d..08d5d136d9 100644 --- a/samples/aui/auidemo.cpp +++ b/samples/aui/auidemo.cpp @@ -798,7 +798,7 @@ MyFrame::MyFrame(wxWindow* parent, tb2->SetToolBitmapSize(wxSize(16,16)); wxBitmap tb2_bmp1 = wxArtProvider::GetBitmap(wxART_QUESTION, wxART_OTHER, wxSize(16,16)); - tb2->AddTool(ID_SampleItem+6, wxT("Test"), tb2_bmp1); + tb2->AddTool(ID_SampleItem+6, wxT("Disabled"), tb2_bmp1); tb2->AddTool(ID_SampleItem+7, wxT("Test"), tb2_bmp1); tb2->AddTool(ID_SampleItem+8, wxT("Test"), tb2_bmp1); tb2->AddTool(ID_SampleItem+9, wxT("Test"), tb2_bmp1); @@ -811,6 +811,7 @@ MyFrame::MyFrame(wxWindow* parent, tb2->AddTool(ID_SampleItem+14, wxT("Test"), tb2_bmp1); tb2->AddTool(ID_SampleItem+15, wxT("Test"), tb2_bmp1); tb2->SetCustomOverflowItems(prepend_items, append_items); + tb2->EnableTool(ID_SampleItem+6, false); tb2->Realize(); @@ -1548,7 +1549,7 @@ wxTextCtrl* MyFrame::CreateTextCtrl(const wxString& ctrl_text) static int n = 0; wxString text; - if (ctrl_text.Length() > 0) + if ( !ctrl_text.empty() ) text = ctrl_text; else text.Printf(wxT("This is text box %d"), ++n); @@ -1704,7 +1705,7 @@ wxString MyFrame::GetIntroText() "
  • Native, dockable floating frames
  • " "
  • Perspective saving and loading
  • " "
  • Native toolbars incorporating real-time, "spring-loaded" dragging
  • " - "
  • Customizable floating/docking behavior
  • " + "
  • Customizable floating/docking behaviour
  • " "
  • Completely customizable look-and-feel
  • " "
  • Optional transparent window effects (while dragging or docking)
  • " "
  • Splittable notebook control
  • "