removed SetAutoLayout(true) calls when a corresponding SetSizer() was also called (the latter already calls SetAutoLayout(true) in case of a non-NULL window); usual cleanup: removing tabs and end of line whitespace, TRUE->true, FALSE->false, -1->wxID_ANY, Enable(false)->Disable(), ""->wxEmptyString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -182,7 +182,7 @@ MyFrame::MyFrame(wxFrame *frame, const wxString& title)
|
||||
// Make a panel
|
||||
m_panel = new wxPanel(this );
|
||||
|
||||
m_modalbutton = new wxButton( this, BUTTON_MODAL, "Modal Dialog",
|
||||
m_modalbutton = new wxButton( this, BUTTON_MODAL, "Modal Dialog",
|
||||
wxPoint(10,10), wxDefaultSize );
|
||||
}
|
||||
|
||||
@@ -266,7 +266,6 @@ MyModalDialog::MyModalDialog(wxWindow *parent)
|
||||
sizerTop->Add(m_book1, 0, wxALIGN_CENTER | wxALL, 5);
|
||||
sizerTop->Add(m_book2, 0, wxALIGN_CENTER | wxALL, 5);
|
||||
|
||||
SetAutoLayout(true);
|
||||
SetSizer(sizerTop);
|
||||
|
||||
sizerTop->SetSizeHints(this);
|
||||
|
Reference in New Issue
Block a user