Minor doc updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -165,7 +165,7 @@ created in the function or NULL on failure.
|
||||
\func{virtual bool}{AssociateModel}{\param{wxDataViewModel* }{model}}
|
||||
|
||||
Associates a \helpref{wxDataViewModel}{wxdataviewmodel} with the
|
||||
control.
|
||||
control. This increases the reference count of the model by 1.
|
||||
|
||||
\membersection{wxDataViewCtrl::Create}\label{wxdataviewctrlcreate}
|
||||
|
||||
|
@@ -72,12 +72,10 @@ 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}
|
||||
}%
|
||||
|
@@ -4,8 +4,8 @@
|
||||
wxDataViewTreeStore is a specialised \helpref{wxDataViewModel}{wxdataviewmodel}
|
||||
for displaying simple trees very much like \helpref{wxTreeCtrl}{wxtreectrl}
|
||||
does and it offers a similar API. This class actually stores the entire
|
||||
tree (therefore its name) and implements all virtual from the base class
|
||||
so it can be used directly without having to derive any class from it.
|
||||
tree (therefore its name) and implements all virtual methods from the base
|
||||
class so it can be used directly without having to derive any class from it.
|
||||
This comes at the price of much reduced flexibility.
|
||||
|
||||
\wxheading{Derived from}
|
||||
@@ -16,6 +16,11 @@ This comes at the price of much reduced flexibility.
|
||||
|
||||
<dataview.h>
|
||||
|
||||
\wxheading{Library}
|
||||
|
||||
\helpref{wxAdv}{librarieslist}
|
||||
|
||||
|
||||
\membersection{wxDataViewTreeStore::wxDataViewTreeStore}\label{wxdataviewtreestorewxdataviewtreestore}
|
||||
|
||||
\func{}{wxDataViewTreeStore}{\void}
|
||||
|
Reference in New Issue
Block a user