wxCheckBox *m_chkBitmapOnly,
*m_chkTextAndBitmap,
*m_chkFit,
+ *m_chkAuthNeeded,
*m_chkDefault;
// more checkboxes for wxBitmapButton only
m_chkBitmapOnly =
m_chkTextAndBitmap =
m_chkFit =
+ m_chkAuthNeeded =
m_chkDefault =
m_chkUsePressed =
m_chkUseFocused =
wxSizer *sizerLeft = new wxStaticBoxSizer(box, wxVERTICAL);
m_chkBitmapOnly = CreateCheckBoxAndAddToSizer(sizerLeft, "&Bitmap only");
- m_chkTextAndBitmap = CreateCheckBoxAndAddToSizer(sizerLeft, "Text &and &bitmap");
+ m_chkTextAndBitmap = CreateCheckBoxAndAddToSizer(sizerLeft, "Text &and bitmap");
m_chkFit = CreateCheckBoxAndAddToSizer(sizerLeft, wxT("&Fit exactly"));
+ m_chkAuthNeeded = CreateCheckBoxAndAddToSizer(sizerLeft, wxT("Require a&uth"));
m_chkDefault = CreateCheckBoxAndAddToSizer(sizerLeft, wxT("&Default"));
sizerLeft->AddSpacer(5);
{
m_chkBitmapOnly->SetValue(false);
m_chkFit->SetValue(true);
+ m_chkAuthNeeded->SetValue(false);
m_chkTextAndBitmap->SetValue(false);
m_chkDefault->SetValue(false);
m_chkUseCurrent->Enable(showsBitmap);
m_chkUseDisabled->Enable(showsBitmap);
+ if ( m_chkAuthNeeded->GetValue() )
+ m_button->SetAuthNeeded();
+
if ( m_chkDefault->GetValue() )
- {
m_button->SetDefault();
- }
AddButtonToSizer();