From: Robert Roebling Date: Sun, 16 May 2010 15:26:57 +0000 (+0000) Subject: Add GetChoice() and GetChoices() getters to all choice renderers and actually mention... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6bb6cc1e4b46fee0dad142ef1e641f589a85f51d?ds=inline Add GetChoice() and GetChoices() getters to all choice renderers and actually mention it in the docs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/dvrenderers.h b/include/wx/dvrenderers.h index c05c109522..16cf3281b3 100644 --- a/include/wx/dvrenderers.h +++ b/include/wx/dvrenderers.h @@ -333,6 +333,9 @@ public: virtual bool SetValue( const wxVariant &value ); virtual bool GetValue( wxVariant &value ) const; + wxString GetChoice(size_t index) const { return m_choices[index]; } + const wxArrayString& GetChoices() const { return m_choices; } + private: wxArrayString m_choices; wxString m_data;