diff --git a/include/wx/propgrid/props.h b/include/wx/propgrid/props.h index 7db2d06900..f9fc77d510 100644 --- a/include/wx/propgrid/props.h +++ b/include/wx/propgrid/props.h @@ -361,6 +361,7 @@ public: virtual bool IntToValue( wxVariant& variant, int number, int argFlags = 0 ) const; virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); + virtual wxVariant DoGetAttribute( const wxString& name ) const; }; // ----------------------------------------------------------------------- diff --git a/src/propgrid/props.cpp b/src/propgrid/props.cpp index e006f14a2c..5386099e67 100644 --- a/src/propgrid/props.cpp +++ b/src/propgrid/props.cpp @@ -1092,6 +1092,23 @@ bool wxBoolProperty::DoSetAttribute( const wxString& name, wxVariant& value ) return false; } +wxVariant wxBoolProperty::DoGetAttribute( const wxString& name ) const +{ + wxVariant value; +#if wxPG_INCLUDE_CHECKBOX + if ( name == wxPG_BOOL_USE_CHECKBOX ) + { + value = (bool)((m_flags & wxPG_PROP_USE_CHECKBOX) != 0); + } + else +#endif + if ( name == wxPG_BOOL_USE_DOUBLE_CLICK_CYCLING ) + { + value = (bool)((m_flags & wxPG_PROP_USE_DCC) != 0); + } + return value; +} + // ----------------------------------------------------------------------- // wxEnumProperty // -----------------------------------------------------------------------