Fix wxButton page in widgets sample

Enable image alignment radio box only if button with text and image
is active because it is applicable only in this case.
This commit is contained in:
Artur Wieczorek
2021-03-02 22:34:43 +01:00
parent 0d80050057
commit ae5593bd23

View File

@@ -547,6 +547,7 @@ void ButtonWidgetsPage::CreateButton()
m_chkUseFocused->Enable(showsBitmap);
m_chkUseCurrent->Enable(showsBitmap);
m_chkUseDisabled->Enable(showsBitmap);
m_radioImagePos->Enable(m_chkTextAndBitmap->IsChecked());
if ( m_chkAuthNeeded->GetValue() )
m_button->SetAuthNeeded();