From: Jaakko Salli Date: Thu, 26 Aug 2010 13:51:45 +0000 (+0000) Subject: Changed wxArrayStringProperty default delimiter to comma. It should allow for better... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/aae9e5bd567cc8736c64c9f8ee313c8f264a3fff Changed wxArrayStringProperty default delimiter to comma. It should allow for better looking and more easily editable property values for common cases. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/doxygen/overviews/propgrid.h b/docs/doxygen/overviews/propgrid.h index 13cf435332..03a232e5dc 100644 --- a/docs/doxygen/overviews/propgrid.h +++ b/docs/doxygen/overviews/propgrid.h @@ -1020,6 +1020,9 @@ without warnings or errors. property's state since it never had any desired side-effects. ChangeFlag() still exists for those who really need to achieve the same effect. + - wxArrayStringProperty default delimiter is now comma (','), and it can + be changed by setting the new "Delimiter" attribute. + @subsection propgrid_compat_propdev Property and Editor Sub-classing Changes - Confusing custom property macros have been eliminated. diff --git a/interface/wx/propgrid/property.h b/interface/wx/propgrid/property.h index d234e78fbb..e2bbb158ec 100644 --- a/interface/wx/propgrid/property.h +++ b/interface/wx/propgrid/property.h @@ -485,7 +485,8 @@ wxPG_PROP_BEING_DELETED = 0x00200000 @subsection wxArrayStringProperty - Allows editing of a list of strings in wxTextCtrl and in a separate dialog. + Allows editing of a list of strings in wxTextCtrl and in a separate + dialog. Supports "Delimiter" attribute, which defaults to comma (','). @subsection wxDateProperty diff --git a/src/propgrid/props.cpp b/src/propgrid/props.cpp index 9a4c874374..0cb64112b5 100644 --- a/src/propgrid/props.cpp +++ b/src/propgrid/props.cpp @@ -2342,7 +2342,7 @@ wxArrayStringProperty::wxArrayStringProperty( const wxString& label, const wxArrayString& array ) : wxPGProperty(label,name) { - m_delimiter = '"'; + m_delimiter = ','; SetValue( array ); }