+
+ wxBitmap bmp1(wxArtProvider::GetBitmap(wxART_INFORMATION)),
+ bmp2(wxArtProvider::GetBitmap(wxART_WARNING)),
+ bmp3(wxArtProvider::GetBitmap(wxART_QUESTION));
+ wxBitmapButton *bmpBtn = new wxBitmapButton
+ (
+ panel, wxID_ANY,
+ bmp1,
+ wxPoint(30, 70)
+ );
+
+ bmpBtn->SetBitmapSelected(bmp2);
+ bmpBtn->SetBitmapFocus(bmp3);
+
+#if wxUSE_TOGGLEBTN
+ (void)new wxToggleButton(panel, ID_BUTTON_LABEL,
+ _T("&Toggle label"), wxPoint(250, 20));
+#else
+ (void)new wxCheckBox(panel, ID_BUTTON_LABEL,
+ _T("&Toggle label"), wxPoint(250, 20));
+#endif // wxUSE_TOGGLEBTN
+
+ m_label = new wxStaticText(panel, wxID_ANY, _T("Label with some long text"),
+ wxPoint(250, 60), wxDefaultSize,
+ wxALIGN_RIGHT /*| wxST_NO_AUTORESIZE*/);
+ m_label->SetForegroundColour( *wxBLUE );
+
+ m_notebook->AddPage(panel, _T("wxBitmapXXX"));
+
+ // sizer
+
+ panel = new wxPanel(m_notebook);
+ panel->SetAutoLayout( true );
+
+ wxBoxSizer *sizer = new wxBoxSizer( wxVERTICAL );
+
+ wxStaticBoxSizer *csizer =
+ new wxStaticBoxSizer (new wxStaticBox (panel, wxID_ANY, _T("Show Buttons")), wxHORIZONTAL );
+
+ wxCheckBox *check1, *check2, *check3, *check4, *check14, *checkBig;
+ check1 = new wxCheckBox (panel, ID_SIZER_CHECK1, _T("1"));
+ check1->SetValue (true);
+ csizer->Add (check1);
+ check2 = new wxCheckBox (panel, ID_SIZER_CHECK2, _T("2"));
+ check2->SetValue (true);
+ csizer->Add (check2);
+ check3 = new wxCheckBox (panel, ID_SIZER_CHECK3, _T("3"));
+ check3->SetValue (true);
+ csizer->Add (check3);
+ check4 = new wxCheckBox (panel, ID_SIZER_CHECK4, _T("4"));
+ check4->SetValue (true);
+ csizer->Add (check4);
+ check14 = new wxCheckBox (panel, ID_SIZER_CHECK14, _T("1-4"));
+ check14->SetValue (true);
+ csizer->Add (check14);
+ checkBig = new wxCheckBox (panel, ID_SIZER_CHECKBIG, _T("Big"));
+ checkBig->SetValue (true);
+ csizer->Add (checkBig);
+
+ sizer->Add (csizer);
+
+ m_hsizer = new wxBoxSizer( wxHORIZONTAL );
+
+ m_buttonSizer = new wxBoxSizer (wxVERTICAL);
+
+ m_sizerBtn1 = new wxButton(panel, wxID_ANY, _T("Test Button &1 (tab order 1)") );
+ m_buttonSizer->Add( m_sizerBtn1, 0, wxALL, 10 );
+ m_sizerBtn2 = new wxButton(panel, wxID_ANY, _T("Test Button &2 (tab order 3)") );
+ m_buttonSizer->Add( m_sizerBtn2, 0, wxALL, 10 );
+ m_sizerBtn3 = new wxButton(panel, wxID_ANY, _T("Test Button &3 (tab order 2)") );
+ m_buttonSizer->Add( m_sizerBtn3, 0, wxALL, 10 );
+ m_sizerBtn4 = new wxButton(panel, wxID_ANY, _T("Test Button &4 (tab order 4)") );
+ m_buttonSizer->Add( m_sizerBtn4, 0, wxALL, 10 );
+
+ m_sizerBtn3->MoveBeforeInTabOrder(m_sizerBtn2);
+
+ m_hsizer->Add (m_buttonSizer);
+ m_hsizer->Add( 20,20, 1 );
+ m_bigBtn = new wxButton(panel, wxID_ANY, _T("Multiline\nbutton") );
+ m_hsizer->Add( m_bigBtn , 3, wxGROW|wxALL, 10 );
+
+ sizer->Add (m_hsizer, 1, wxGROW);
+
+ panel->SetSizer( sizer );
+
+ m_notebook->AddPage(panel, _T("wxSizer"));