Make wxPG_FILE_DIALOG_STYLE a built-in attribute
This attribute is used only internally in wxFileProperty so it can be considered as a built-in attribute which value can be stored in the local data member and not in the property's attribute store.
This commit is contained in:
@@ -1964,6 +1964,7 @@ wxFileProperty::wxFileProperty( const wxString& label, const wxString& name,
|
||||
{
|
||||
m_flags |= wxPG_PROP_SHOW_FULL_FILENAME;
|
||||
m_indFilter = -1;
|
||||
m_dlgStyle = 0;
|
||||
SetAttribute( wxPG_FILE_WILDCARD, wxALL_FILES);
|
||||
|
||||
SetValue(value);
|
||||
@@ -2147,6 +2148,11 @@ bool wxFileProperty::DoSetAttribute( const wxString& name, wxVariant& value )
|
||||
m_dlgTitle = value.GetString();
|
||||
return true;
|
||||
}
|
||||
else if ( name == wxPG_FILE_DIALOG_STYLE )
|
||||
{
|
||||
m_dlgStyle = value.GetLong();
|
||||
return true;
|
||||
}
|
||||
return wxPGProperty::DoSetAttribute(name, value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user