Implement basic MVC logic (change an item in one
view and all views update themselves) and made wxDataViewToggleCell react to mouse clicks as a test for that (generic code). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -376,7 +376,7 @@ MyFrame::MyFrame(wxFrame *frame, wxChar *title, int x, int y, int w, int h):
|
||||
dataview_right->AppendColumn( column );
|
||||
dataview_right->AppendTextColumn( wxT("first"), 0 );
|
||||
dataview_right->AppendTextColumn( wxT("second"), 1 );
|
||||
wxDataViewToggleCell *toggle_cell = new wxDataViewToggleCell( wxT("bool"), wxDATAVIEW_CELL_EDITABLE );
|
||||
wxDataViewToggleCell *toggle_cell = new wxDataViewToggleCell( wxT("bool"), wxDATAVIEW_CELL_ACTIVATABLE );
|
||||
column = new wxDataViewColumn( wxT("bool"), toggle_cell, 3 );
|
||||
dataview_right->AppendColumn( column );
|
||||
|
||||
|
Reference in New Issue
Block a user