X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32025be9de6718cd3e510ac32c4dfc8adb4e4d84..917be7ed065337e8a7a67615969ecaade9eea809:/docs/latex/wx/listctrl.tex?ds=sidebyside diff --git a/docs/latex/wx/listctrl.tex b/docs/latex/wx/listctrl.tex index 570caddff9..67aa6b07c3 100644 --- a/docs/latex/wx/listctrl.tex +++ b/docs/latex/wx/listctrl.tex @@ -103,7 +103,7 @@ functions that take a \helpref{wxListEvent}{wxlistevent} argument. \latexignore{\rtfignore{\wxheading{Members}}} -\membersection{wxListCtrl::wxListCtrl}\label{wxlistctrlconstr} +\membersection{wxListCtrl::wxListCtrl}\label{wxlistctrlctor} \func{}{wxListCtrl}{\void} @@ -137,7 +137,7 @@ appropriately.} \helpref{wxListCtrl::Create}{wxlistctrlcreate}, \helpref{wxValidator}{wxvalidator} -\membersection{wxListCtrl::\destruct{wxListCtrl}} +\membersection{wxListCtrl::\destruct{wxListCtrl}}\label{wxlistctrldtor} \func{void}{\destruct{wxListCtrl}}{\void} @@ -186,7 +186,7 @@ Deletes all items and all columns. \param{const wxPoint\&}{ pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize},\rtfsp \param{long}{ style = wxLC\_ICON}, \param{const wxValidator\& }{validator = wxDefaultValidator}, \param{const wxString\& }{name = ``listCtrl"}} -Creates the list control. See \helpref{wxListCtrl::wxListCtrl}{wxlistctrlconstr} for further details. +Creates the list control. See \helpref{wxListCtrl::wxListCtrl}{wxlistctrlctor} for further details. \membersection{wxListCtrl::DeleteAllItems}\label{wxlistctrldeleteallitems} @@ -673,7 +673,7 @@ The base class version always returns $-1$. \membersection{wxListCtrl::OnGetItemText}\label{wxlistctrlongetitemtext} -\func{virtual wxString}{OnGetItemText}{\param{long }{item}, \param{long }{column}} +\constfunc{virtual wxString}{OnGetItemText}{\param{long }{item}, \param{long }{column}} This function {\bf must} be overloaded in the derived class for a control with {\tt wxLC\_VIRTUAL} style. It should return the string containing the text of @@ -808,12 +808,6 @@ The {\bf m\_mask} member contains a bitlist specifying which of the other fields The {\bf m\_stateMask} and {\bf m\_state} members take flags from the following: -The wxListItem object can also contain item-specific colour and font -information: for this you need to call one of SetTextColour(), -SetBackgroundColour() or SetFont() functions on it passing it the colour/font -to use. If the colour/font is not specified, the default list control -colour/font is used. - \twocolwidtha{5cm} \begin{twocollist}\itemsep=0pt \twocolitem{wxLIST\_STATE\_DONTCARE}{Don't care what the state is. Win32 only. } @@ -823,6 +817,12 @@ colour/font is used. \twocolitem{wxLIST\_STATE\_CUT}{The item is in the cut state. Win32 only. } \end{twocollist} +The wxListItem object can also contain item-specific colour and font +information: for this you need to call one of SetTextColour(), +SetBackgroundColour() or SetFont() functions on it passing it the colour/font +to use. If the colour/font is not specified, the default list control +colour/font is used. + \func{long}{SetItem}{\param{long }{index}, \param{int }{col}, \param{const wxString\& }{label}, \param{int }{imageId = -1}} Sets a string field at a particular column. @@ -867,17 +867,23 @@ Associates application-defined data with this item. \membersection{wxListCtrl::SetItemImage}\label{wxlistctrlsetitemimage} +\func{bool}{SetItemImage}{\param{long }{item}, \param{int }{image}} + +Sets the image associated with the item. The image is an index into the +image list associated with the list control. + \func{bool}{SetItemImage}{\param{long }{item}, \param{int }{image}, \param{int }{selImage}} Sets the unselected and selected images associated with the item. The images are indices into the -image list associated with the list control. +image list associated with the list control. This form is deprecated: {\it selImage} is not +used. \membersection{wxListCtrl::SetItemPosition}\label{wxlistctrlsetitemposition} \func{bool}{SetItemPosition}{\param{long }{item}, \param{const wxPoint\& }{pos}} -Sets the position of the item, in icon or small icon view. +Sets the position of the item, in icon or small icon view. Windows only. \membersection{wxListCtrl::SetItemState}\label{wxlistctrlsetitemstate}