]> git.saurik.com Git - wxWidgets.git/commitdiff
Illustrate usage of wxDataViewListCtrl
authorRobert Roebling <robert@roebling.de>
Fri, 16 Jan 2009 15:50:53 +0000 (15:50 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 16 Jan 2009 15:50:53 +0000 (15:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/dataview.h

index 37b6f17c0023871cfc0828cd2b4784b49a7e2795..6e2272ddf6a4744a39c14dd0c1095e186ea4c48c 100644 (file)
@@ -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<wxVariant> 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}
 */