A couple small tweaks to get the new wxNotebookSizer sample to work on MSW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -205,7 +205,7 @@ void MyFrame::TestSizers(wxCommandEvent& WXUNUSED(event) )
|
|||||||
|
|
||||||
void MyFrame::TestNotebookSizers(wxCommandEvent& WXUNUSED(event) )
|
void MyFrame::TestNotebookSizers(wxCommandEvent& WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
wxDialog dialog( this, -1, "Notebook Sizer Test Dialog" );
|
wxDialog dialog( this, -1, wxString("Notebook Sizer Test Dialog") );
|
||||||
|
|
||||||
// Begin with first hierarchy: a notebook at the top and
|
// Begin with first hierarchy: a notebook at the top and
|
||||||
// and OK button at the bottom.
|
// and OK button at the bottom.
|
||||||
@@ -242,9 +242,9 @@ void MyFrame::TestNotebookSizers(wxCommandEvent& WXUNUSED(event) )
|
|||||||
// Tell dialog to use sizer
|
// Tell dialog to use sizer
|
||||||
|
|
||||||
dialog.SetAutoLayout( TRUE );
|
dialog.SetAutoLayout( TRUE );
|
||||||
|
dialog.SetSizer( topsizer );
|
||||||
topsizer->Fit( &dialog );
|
topsizer->Fit( &dialog );
|
||||||
topsizer->SetSizeHints( &dialog );
|
topsizer->SetSizeHints( &dialog );
|
||||||
dialog.SetSizer( topsizer );
|
|
||||||
|
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user