Fixed wxSingleChoiceDialog to match the docs wrt the style flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -317,7 +317,7 @@ bool wxAnyChoiceDialog::Create(wxWindow *parent,
|
|||||||
const wxString& message,
|
const wxString& message,
|
||||||
const wxString& caption,
|
const wxString& caption,
|
||||||
int n, const wxString *choices,
|
int n, const wxString *choices,
|
||||||
long WXUNUSED(styleDlg), // FIXME: why unused?
|
long styleDlg,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
long styleLbox)
|
long styleLbox)
|
||||||
{
|
{
|
||||||
@@ -346,7 +346,7 @@ bool wxAnyChoiceDialog::Create(wxWindow *parent,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// 4) buttons
|
// 4) buttons
|
||||||
topsizer->Add( CreateButtonSizer( wxOK|wxCANCEL ), 0, wxCENTRE | wxALL, 10 );
|
topsizer->Add( CreateButtonSizer( styleDlg & (wxOK|wxCANCEL) ), 0, wxCENTRE | wxALL, 10 );
|
||||||
|
|
||||||
SetAutoLayout( TRUE );
|
SetAutoLayout( TRUE );
|
||||||
SetSizer( topsizer );
|
SetSizer( topsizer );
|
||||||
|
Reference in New Issue
Block a user