]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/dataviewmodel.tex
fix syntax errors in the example
[wxWidgets.git] / docs / latex / wx / dataviewmodel.tex
index 4e56edd006459af61743c81981a8e09ae07e1ce5..7cf9910703e1ef75c8d3f89049ad0128da6abe59 100644 (file)
@@ -36,9 +36,9 @@ one of the following methods:
 \helpref{Cleared}{wxdataviewmodelcleared}. There are
 plural forms for notification of addition, change
 or removal of several item at once. See 
-\helpref{ItemsAdded}{wxdataviewmodelitesmadded},
+\helpref{ItemsAdded}{wxdataviewmodelitemsadded},
 \helpref{ItemsDeleted}{wxdataviewmodelitemsdeleted},
-\helpref{ItemsChanged}{wxdataviewmodelitemschanged},
+\helpref{ItemsChanged}{wxdataviewmodelitemschanged}.
 
 Note that wxDataViewModel does not define the position or
 index of any item in the control because different controls
@@ -66,18 +66,16 @@ from the base model:
 
 Note that wxDataViewModel is reference counted, derives from 
 \helpref{wxObjectRefData}{wxobjectrefdata} and cannot be deleted
-directly as it can be shares by several wxDataViewCtrl. This
+directly as it can be shared by several wxDataViewCtrls. This
 implies that you need to decrease the reference count after
 associating the model with a control like this:
 
 {\small%
 \begin{verbatim}
-    wxDataViewCtrl *musicCtrl = new wxDataViewCtrl( this, ID_MUSIC_CTRL, wxDefaultPosition,
-                                                     wxDefaultSize, wxDV_MULTIPLE );
+    wxDataViewCtrl *musicCtrl = new wxDataViewCtrl( this, ID_MUSIC_CTRL );
     wxDataViewModel *musicModel = new MyMusicModel;
     m_musicCtrl->AssociateModel( musicModel );
     musicModel->DecRef();  // avoid memory leak !!
-
     // add columns now
 \end{verbatim}
 }%