relayout the sizer containing the button after changing its label as this may change the button size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -475,6 +475,8 @@ void ButtonWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))
 | 
			
		||||
void ButtonWidgetsPage::OnButtonChangeLabel(wxCommandEvent& WXUNUSED(event))
 | 
			
		||||
{
 | 
			
		||||
    m_button->SetLabel(m_textLabel->GetValue());
 | 
			
		||||
 | 
			
		||||
    m_sizerButton->Layout();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ButtonWidgetsPage::OnButton(wxCommandEvent& WXUNUSED(event))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user