Applied modified form of the StdButtonSize patch.
Tested on GTK2, MSW and Mac.
Adapted various generic dialogs to stretch the
button sizer so that the buttons don't end
up centered but right aligned.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -190,17 +190,7 @@ wxGenericDirDialog::wxGenericDirDialog(wxWindow* parent, const wxString& title,
|
||||
#endif
|
||||
|
||||
// 4) Buttons
|
||||
buttonsizer = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
// OK and Cancel button should be at the right bottom
|
||||
wxButton* okButton = new wxButton(this, wxID_OK);
|
||||
buttonsizer->Add( okButton, 0, wxLEFT|wxRIGHT, 10 );
|
||||
wxButton* cancelButton = new wxButton(this, wxID_CANCEL);
|
||||
buttonsizer->Add( cancelButton, 0, wxLEFT|wxRIGHT, 10 );
|
||||
|
||||
topsizer->Add( buttonsizer, 0, wxLEFT|wxTOP|wxBOTTOM | wxALIGN_RIGHT, 10 );
|
||||
|
||||
okButton->SetDefault();
|
||||
topsizer->Add( CreateButtonSizer( wxOK|wxCANCEL ), 0, wxEXPAND | wxALL, 10 );
|
||||
|
||||
#endif // !__SMARTPHONE__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user