- wxSizer *ps_bottom = new wxStaticBoxSizer( wxVERTICAL, this, "With wxSHAPED item" );
- wxSizer *ps_bottom_box = new wxBoxSizer(wxHORIZONTAL);
- ps_bottom->Add( ps_bottom_box, 100, wxEXPAND );
- ps_bottom_box->Add( new wxListBox(this,wxID_ANY,wxPoint(0,0),wxSize(70,70)), 0, wxEXPAND|wxSHAPED );
- ps_bottom_box->Add( 10,10 );
- ps_bottom_box->Add( new wxCheckBox(this,wxID_ANY,"A much longer option..."), 100, 0, 5 );
-
- root->Add( ps_bottom, 1, wxEXPAND | wxALL, 5 );
-#endif
+ wxSizer *bottomSizer = new wxStaticBoxSizer( wxVERTICAL, this, "With wxSHAPED item" );
+ wxSizer *horzBoxSizer = new wxBoxSizer(wxHORIZONTAL);
+ bottomSizer->Add( horzBoxSizer, 100, wxEXPAND );
+ horzBoxSizer->Add( new wxListBox(this,wxID_ANY,wxPoint(0,0),wxSize(70,70)), 0, wxEXPAND|wxSHAPED );
+ horzBoxSizer->Add( 10,10 );
+ horzBoxSizer->Add( new wxCheckBox(this,wxID_ANY,"A much longer option..."), 100, 0, 5 );
+
+ root->Add( bottomSizer, 1, wxEXPAND | wxALL, 5 );