Illustrate usage of wxDataViewListCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1a7cc1083e
commit
23efa4bfb9
@ -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}
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user