don't use wxFilePicker style when creating wxButton
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f5008769d6
commit
68623b5937
@ -40,15 +40,20 @@ IMPLEMENT_DYNAMIC_CLASS(wxGenericDirButton, wxButton)
|
||||
// wxGenericFileButton
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
bool wxGenericFileDirButton::Create( wxWindow *parent, wxWindowID id,
|
||||
const wxString &label, const wxString &path,
|
||||
const wxString &message, const wxString &wildcard,
|
||||
const wxPoint &pos, const wxSize &size, long style,
|
||||
const wxValidator& validator, const wxString &name)
|
||||
bool wxGenericFileDirButton::Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& label,
|
||||
const wxString& path,
|
||||
const wxString& message,
|
||||
const wxString& wildcard,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
long WXUNUSED(style),
|
||||
const wxValidator& validator,
|
||||
const wxString& name)
|
||||
{
|
||||
// create this button
|
||||
if (!wxButton::Create(parent, id, label, pos, size, style,
|
||||
validator, name))
|
||||
if ( !wxButton::Create(parent, id, label, pos, size, 0, validator, name) )
|
||||
{
|
||||
wxFAIL_MSG( wxT("wxGenericFileButton creation failed") );
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user