}
else
return wxGenericFileButton::Create(parent, id, label, path, message, wildcard,
}
else
return wxGenericFileButton::Create(parent, id, label, path, message, wildcard,
// NB: it's important to use gtk_file_chooser_get_filename instead of
// gtk_file_chooser_get_current_folder (see GTK docs) !
// NB: it's important to use gtk_file_chooser_get_filename instead of
// gtk_file_chooser_get_current_folder (see GTK docs) !
// ...and fire an event
wxFileDirPickerEvent event(wxEVT_COMMAND_DIRPICKER_CHANGED, p, p->GetId(), p->GetPath());
// ...and fire an event
wxFileDirPickerEvent event(wxEVT_COMMAND_DIRPICKER_CHANGED, p, p->GetId(), p->GetPath());
}
else
return wxGenericDirButton::Create(parent, id, label, path, message, wildcard,
}
else
return wxGenericDirButton::Create(parent, id, label, path, message, wildcard,