Fix invalid use of wxSizer flags in samples and utils.
Remove alignment flags that result in asserts because of being used in combinations that don't make sense. Also use wxSizerFlags in the lines that were changed.
This commit is contained in:
@@ -189,15 +189,15 @@ MyFrame::MyFrame(wxFrame *frame, const wxString& title)
|
||||
|
||||
item1->Add( item2, 1, wxALIGN_CENTER|wxALL, 5 );
|
||||
|
||||
item0->Add( item1, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
item0->Add( item1, wxSizerFlags().Expand().Border(wxALL, 5) );
|
||||
|
||||
wxStaticBox *item14 = new wxStaticBox( this, -1, wxT("Client log") );
|
||||
wxStaticBoxSizer *item13 = new wxStaticBoxSizer( item14, wxVERTICAL );
|
||||
|
||||
wxTextCtrl *item15 = new wxTextCtrl( this, ID_LOG, wxEmptyString, wxDefaultPosition, wxSize(500,140), wxTE_MULTILINE );
|
||||
item13->Add( item15, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
item13->Add( item15, wxSizerFlags(1).Expand().Border(wxALL, 5) );
|
||||
|
||||
item0->Add( item13, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
item0->Add( item13, wxSizerFlags(0).Expand().Border(wxALL, 5) );
|
||||
|
||||
this->SetSizer( item0 );
|
||||
item0->SetSizeHints( this );
|
||||
|
Reference in New Issue
Block a user