Refresh window layout after changing wxSpinCtrl base in widgets sample

Changing the base of the number changes the size of wxSpinCtrl
so the layout needs to be reset to account this new size.
This commit is contained in:
Artur Wieczorek
2020-06-30 19:35:15 +02:00
parent 016924e14c
commit ff87733cd8

View File

@@ -480,6 +480,8 @@ void SpinBtnWidgetsPage::OnButtonSetBase(wxCommandEvent& WXUNUSED(event))
{
wxLogWarning("Setting base %d failed.", m_base);
}
m_sizerSpin->Layout();
}
void SpinBtnWidgetsPage::OnButtonSetValue(wxCommandEvent& WXUNUSED(event))