From 23efa4bfb9104d6ef947a217efa80b2bc5bf9e76 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 16 Jan 2009 15:50:53 +0000 Subject: [PATCH] Illustrate usage of wxDataViewListCtrl git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/dataview.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/interface/wx/dataview.h b/interface/wx/dataview.h index 37b6f17c00..6e2272ddf6 100644 --- a/interface/wx/dataview.h +++ b/interface/wx/dataview.h @@ -1490,6 +1490,24 @@ public: The purpose of this class is to offer a simple way to display and edit a small table of data without having to write your own wxDataViewModel. + @code + wxDataViewListCtrl *listctrl = new wxDataViewListCtrl( parent, -1 ); + + listctrl->AppendToggleCol( "Toggle" ); + listctrl->AppendTextCol( "Text" ); + + wxVector data; + data.push_back( true ); + data.push_back( "row 1" ); + listctrl->AppendItem( data ); + + data.clear(); + data.push_back( false ); + data.push_back( "row 3" ); + listctrl->AppendItem( data ); + @endcode + + @library{wxadv} @category{ctrl,dvc} */ -- 2.45.2