- m_chkImage = CreateCheckBoxAndAddToSizer(sizerLeft, _T("With &image"));
- m_chkFit = CreateCheckBoxAndAddToSizer(sizerLeft, _T("&Fit exactly"));
- m_chkDefault = CreateCheckBoxAndAddToSizer(sizerLeft, _T("&Default"));
-
-#ifndef __WXUNIVERSAL__
- // only wxUniv currently supoprts buttons with images
- m_chkImage->Disable();
-#endif // !wxUniv
-
- sizerLeft->Add(5, 5, 0, wxGROW | wxALL, 5); // spacer
+ m_chkBitmapOnly = CreateCheckBoxAndAddToSizer(sizerLeft, "&Bitmap only");
+ m_chkTextAndBitmap = CreateCheckBoxAndAddToSizer(sizerLeft, "Text &and bitmap");
+ m_chkFit = CreateCheckBoxAndAddToSizer(sizerLeft, wxT("&Fit exactly"));
+ m_chkAuthNeeded = CreateCheckBoxAndAddToSizer(sizerLeft, wxT("Require a&uth"));
+#if wxUSE_COMMANDLINKBUTTON
+ m_chkCommandLink = CreateCheckBoxAndAddToSizer(sizerLeft, wxT("Use command &link button"));
+#endif
+#if wxUSE_MARKUP
+ m_chkUseMarkup = CreateCheckBoxAndAddToSizer(sizerLeft, "Interpret &markup");
+#endif // wxUSE_MARKUP
+ m_chkDefault = CreateCheckBoxAndAddToSizer(sizerLeft, wxT("&Default"));
+
+ m_chkUseBitmapClass = CreateCheckBoxAndAddToSizer(sizerLeft,
+ "Use wxBitmapButton");
+ m_chkUseBitmapClass->SetValue(true);
+
+ sizerLeft->AddSpacer(5);
+
+ wxSizer *sizerUseLabels =
+ new wxStaticBoxSizer(wxVERTICAL, this,
+ "&Use the following bitmaps in addition to the normal one?");
+ m_chkUsePressed = CreateCheckBoxAndAddToSizer(sizerUseLabels,
+ "&Pressed (small help icon)");
+ m_chkUseFocused = CreateCheckBoxAndAddToSizer(sizerUseLabels,
+ "&Focused (small error icon)");
+ m_chkUseCurrent = CreateCheckBoxAndAddToSizer(sizerUseLabels,
+ "&Current (small warning icon)");
+ m_chkUseDisabled = CreateCheckBoxAndAddToSizer(sizerUseLabels,
+ "&Disabled (broken image icon)");
+ sizerLeft->Add(sizerUseLabels, wxSizerFlags().Expand().Border());
+
+ sizerLeft->AddSpacer(10);
+
+ static const wxString dirs[] =
+ {
+ "left", "right", "top", "bottom",
+ };
+ m_radioImagePos = new wxRadioBox(this, wxID_ANY, "Image &position",
+ wxDefaultPosition, wxDefaultSize,
+ WXSIZEOF(dirs), dirs);
+ sizerLeft->Add(m_radioImagePos, 0, wxGROW | wxALL, 5);
+ sizerLeft->AddSpacer(15);