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:
@@ -40,15 +40,20 @@ IMPLEMENT_DYNAMIC_CLASS(wxGenericDirButton, wxButton)
|
|||||||
// wxGenericFileButton
|
// wxGenericFileButton
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
bool wxGenericFileDirButton::Create( wxWindow *parent, wxWindowID id,
|
bool wxGenericFileDirButton::Create(wxWindow *parent,
|
||||||
const wxString &label, const wxString &path,
|
wxWindowID id,
|
||||||
const wxString &message, const wxString &wildcard,
|
const wxString& label,
|
||||||
const wxPoint &pos, const wxSize &size, long style,
|
const wxString& path,
|
||||||
const wxValidator& validator, const wxString &name)
|
const wxString& message,
|
||||||
|
const wxString& wildcard,
|
||||||
|
const wxPoint& pos,
|
||||||
|
const wxSize& size,
|
||||||
|
long WXUNUSED(style),
|
||||||
|
const wxValidator& validator,
|
||||||
|
const wxString& name)
|
||||||
{
|
{
|
||||||
// create this button
|
// create this button
|
||||||
if (!wxButton::Create(parent, id, label, pos, size, style,
|
if ( !wxButton::Create(parent, id, label, pos, size, 0, validator, name) )
|
||||||
validator, name))
|
|
||||||
{
|
{
|
||||||
wxFAIL_MSG( wxT("wxGenericFileButton creation failed") );
|
wxFAIL_MSG( wxT("wxGenericFileButton creation failed") );
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user