Make wxPG_ATTR_MULTICHOICE_USERSTRINGMODE a built-in attribute

This attribute is used only internally in wxArrayStringProperty and thus 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:
Artur Wieczorek
2019-04-22 11:45:32 +02:00
parent 36285e7fb8
commit cd1dafb619
3 changed files with 22 additions and 10 deletions

View File

@@ -344,6 +344,7 @@ public:
int argFlags = 0) const wxOVERRIDE;
virtual bool OnEvent( wxPropertyGrid* propgrid,
wxWindow* primary, wxEvent& event ) wxOVERRIDE;
virtual bool DoSetAttribute( const wxString& name, wxVariant& value ) wxOVERRIDE;
wxArrayInt GetValueAsArrayInt() const
{
@@ -361,6 +362,8 @@ protected:
// Cache displayed text since generating it is relatively complicated.
wxString m_display;
// How to handle user strings
int m_userStringMode;
};
#endif // wxUSE_CHOICEDLG