Use correct style for the dialog shown by generic file/dir pickers.
The picker styles don't make sense for the button so we don't use them when creating the button but we do need to somehow use the style the picker was created with to create an appropriate dialog when it's clicked. Fix the problem by simply storing the style in a member variable and using it instead of wxWindow::m_windowStyle. Closes #11635. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -48,10 +48,12 @@ bool wxGenericFileDirButton::Create(wxWindow *parent,
|
||||
const wxString& wildcard,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
long WXUNUSED(style),
|
||||
long style,
|
||||
const wxValidator& validator,
|
||||
const wxString& name)
|
||||
{
|
||||
m_pickerStyle = style;
|
||||
|
||||
// create this button
|
||||
if ( !wxButton::Create(parent, id, label, pos, size, 0, validator, name) )
|
||||
{
|
||||
|
Reference in New Issue
Block a user