1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Name: listview.tex
%% Purpose: wxListView documentation
%% Author: Vadim Zeitlin
%% Modified by:
%% Created: 07.11.02
%% RCS-ID: $Id: listview.tex 41459 2006-09-26 09:20:50Z RR $
%% Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwindows.org>
%% License: wxWindows license
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{\class{wxListView}}\label{wxlistview}
This class currently simply presents a simpler to use interface for the
\helpref{wxListCtrl}{wxlistctrl} -- it can be thought of as a {\it fa\c{c}ade}
for that complicated class. Using it is preferable to using
\helpref{wxListCtrl}{wxlistctrl} directly whenever possible because in the
future some ports might implement wxListView but not the full set of wxListCtrl
features.
Other than different interface, this class is identical to wxListCtrl. In
particular, it uses the same events, same window styles and so on.
\wxheading{Derived from}
\helpref{wxListCtrl}{wxlistctrl}\\
\helpref{wxControl}{wxcontrol}\\
\helpref{wxWindow}{wxwindow}\\
\helpref{wxEvtHandler}{wxevthandler}\\
\helpref{wxObject}{wxobject}
\wxheading{Include files}
<wx/listctrl.h>
%%%%%%%%%%%%% Methods in alphabetic order %%%%%%%%%%%%%
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxListView::ClearColumnImage}\label{wxlistviewclearcolumnimage}
\func{void}{ClearColumnImage}{\param{int }{col}}
Resets the column image -- after calling this function, no image will be shown.
\wxheading{Parameters}
\docparam{col}{the column to clear image for}
\wxheading{See also}
\helpref{SetColumnImage}{wxlistviewsetcolumnimage}
\membersection{wxListView::Focus}\label{wxlistviewfocus}
\func{void}{Focus}{\param{long }{index}}
Sets focus to the item with the given {\it index}.
\membersection{wxListView::GetFirstSelected}\label{wxlistviewgetfirstselected}
\constfunc{long}{GetFirstSelected}{\void}
Returns the first selected item in a (presumably) multiple selection control.
Together with \helpref{GetNextSelected}{wxlistviewgetnextselected} it can be
used to iterate over all selected items in the control.
\wxheading{Return value}
The first selected item, if any, $-1$ otherwise.
\membersection{wxListView::GetFocusedItem}\label{wxlistviewgetfocuseditem}
\constfunc{long}{GetFocusedItem}{\void}
Returns the currently focused item or $-1$ if none.
\wxheading{See also}
\helpref{IsSelected}{wxlistviewisselected},\\
\helpref{Focus}{wxlistviewfocus}
\membersection{wxListView::GetNextSelected}\label{wxlistviewgetnextselected}
\constfunc{long}{GetNextSelected}{\param{long }{item}}
Used together with \helpref{GetFirstSelected}{wxlistviewgetfirstselected} to
iterate over all selected items in the control.
\wxheading{Return value}
Returns the next selected item or $-1$ if there are no more of them.
\membersection{wxListView::IsSelected}\label{wxlistviewisselected}
\constfunc{bool}{IsSelected}{\param{long }{index}}
Returns {\tt true} if the item with the given {\it index} is selected,
{\tt false} otherwise.
\wxheading{See also}
\helpref{GetFirstSelected}{wxlistviewgetfirstselected},\\
\helpref{GetNextSelected}{wxlistviewgetnextselected}
\membersection{wxListView::Select}\label{wxlistviewselect}
\func{void}{Select}{long n, \param{bool }{on = true}}
Selects or unselects the given item.
\wxheading{Parameters}
\docparam{n}{the item to select or unselect}
\docparam{on}{if {\tt true} (default), selects the item, otherwise unselects it}
\wxheading{See also}
\helpref{SetItemState}{wxlistctrlsetitemstate}
\membersection{wxListView::SetColumnImage}\label{wxlistviewsetcolumnimage}
\func{void}{SetColumnImage}{\param{int }{col}, \param{int }{image}}
Sets the column image for the specified column. To use the column images, the
control must have a valid image list with at least one image.
\wxheading{Parameters}
\docparam{col}{the column to set image for}
\docparam{image}{the index of the column image in the controls image list}
\wxheading{See also}
\helpref{ClearColumnImage}{wxlistviewclearcolumnimage},\\
\helpref{SetImageList}{wxlistctrlsetimagelist}
|