some appearance fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-03-14 14:50:30 +00:00
parent 8ba3dcde1e
commit a1a4396142

View File

@@ -371,6 +371,8 @@ MyAboutDialog::MyAboutDialog(wxWindow *parent)
"wxStatusBar sample\n" "wxStatusBar sample\n"
"(c) 2000 Vadim Zeitlin"); "(c) 2000 Vadim Zeitlin");
wxButton *btn = new wxButton(this, wxID_OK, "&Close");
// create the top status bar without the size grip (default style), // create the top status bar without the size grip (default style),
// otherwise it looks weird // otherwise it looks weird
wxStatusBar *statbarTop = new wxStatusBar(this, -1, 0); wxStatusBar *statbarTop = new wxStatusBar(this, -1, 0);
@@ -387,7 +389,9 @@ MyAboutDialog::MyAboutDialog(wxWindow *parent)
wxBoxSizer *sizerTop = new wxBoxSizer(wxVERTICAL); wxBoxSizer *sizerTop = new wxBoxSizer(wxVERTICAL);
sizerTop->Add(statbarTop, 0, wxGROW); sizerTop->Add(statbarTop, 0, wxGROW);
sizerTop->Add(-1, 10, 1, wxGROW); sizerTop->Add(-1, 10, 1, wxGROW);
sizerTop->Add(text, 0, wxCENTRE); sizerTop->Add(text, 0, wxCENTRE | wxRIGHT | wxLEFT, 20);
sizerTop->Add(-1, 10, 1, wxGROW);
sizerTop->Add(btn, 0, wxCENTRE | wxRIGHT | wxLEFT, 20);
sizerTop->Add(-1, 10, 1, wxGROW); sizerTop->Add(-1, 10, 1, wxGROW);
sizerTop->Add(statbarBottom, 0, wxGROW); sizerTop->Add(statbarBottom, 0, wxGROW);