More wxPython docs...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-02-24 08:17:50 +00:00
parent ad813b00d5
commit 21f280f4ec
5 changed files with 200 additions and 4 deletions

View File

@@ -176,6 +176,15 @@ the beginning if 'start' is -1.
Find an item nearest this position in the specified direction, starting from
the item after {\it start} or the beginning if {\it start} is -1.
\pythonnote{In place of a single overloaded method name, wxPython
implements the following methods:\par
\indented{2cm}{\begin{twocollist}
\twocolitem{\bf{FindItem(start, str, partial=FALSE)}}{}
\twocolitem{\bf{FindItemData(start, data)}}{}
\twocolitem{\bf{FindItemAtPos(start, point, direction)}}{}
\end{twocollist}}
}
\membersection{wxListCtrl::GetColumn}\label{wxlistctrlgetcolumn}
\constfunc{bool}{GetColumn}{\param{int }{col}, \param{wxListItem\& }{item}}
@@ -224,6 +233,10 @@ Returns the specified image list. {\it which} may be one of:
Gets information about the item. See \helpref{wxListCtrl::SetItem}{wxlistctrlsetitem} for more
information.
\pythonnote{The wxPython version of this method takes a parameter
representing the item ID, and returns the wxListItem object.
}
\membersection{wxListCtrl::GetItemData}\label{wxlistctrlgetitemdata}
\constfunc{long}{GetItemData}{\param{long }{item}}
@@ -236,6 +249,9 @@ Gets the application-defined data associated with this item.
Returns the position of the item, in icon or small icon view.
\pythonnote{The wxPython version of this method accempts only the item
ID and returns the wxPoint.}
\membersection{wxListCtrl::GetItemRect}\label{wxlistctrlgetitemrect}
\constfunc{bool}{GetItemRect}{\param{long }{item}, \param{wxRect\& }{rect}, \param{int }{code = wxLIST\_RECT\_BOUNDS}}
@@ -244,6 +260,9 @@ Returns the rectangle representing the item's size and position, in client coord
{\it code} is one of wxLIST\_RECT\_BOUNDS, wxLIST\_RECT\_ICON, wxLIST\_RECT\_LABEL.
\pythonnote{The wxPython version of this method accempts only the item
ID and returns the wxRect.}
\membersection{wxListCtrl::GetItemState}\label{wxlistctrlgetitemstate}
\constfunc{int}{GetItemState}{\param{long }{item}, \param{long }{stateMask}}
@@ -355,6 +374,16 @@ For list view mode (only), inserts a column. For more details, see \helpref{wxLi
For list view mode (only), inserts a column. For more details, see \helpref{wxListCtrl::SetItem}{wxlistctrlsetitem}.
\pythonnote{In place of a single overloaded method name, wxPython
implements the following methods:\par
\indented{2cm}{\begin{twocollist}
\twocolitem{\bf{InsertColumn(col, heading, format=wxLIST_FORMAT_LEFT,
width=-1)}}{Creates a column using a header string only.}
\twocolitem{\bf{InsertColumnInfo(col, item)}}{Creates a column using a
wxListInfo.}
\end{twocollist}}
}
\membersection{wxListCtrl::InsertItem}\label{wxlistctrlinsertitem}
\func{long}{InsertItem}{\param{wxListItem\& }{info}}
@@ -384,6 +413,16 @@ Insert an image/string item.
\docparam{imageIndex}{index into the image list associated with this control and view style}
\pythonnote{In place of a single overloaded method name, wxPython
implements the following methods:\par
\indented{2cm}{\begin{twocollist}
\twocolitem{\bf{InsertItem(item)}}{Inserts an item using a wxListItem.}
\twocolitem{\bf{InsertStringItem(index, label)}}{Inserts a string item.}
\twocolitem{\bf{InsertImageItem(index, imageIndex)}}{Inserts an image item.}
\twocolitem{\bf{InsertImageStringItem(index, label, imageIndex)}}{Insert an image/string item.}
\end{twocollist}}
}
\membersection{wxListCtrl::ScrollList}\label{wxlistctrlscrolllist}
\func{bool}{ScrollList}{\param{int }{dx}, \param{int }{dy}}
@@ -476,6 +515,16 @@ The {\bf m\_stateMask} and {\bf m\_state} members take flags from the following:
Sets a string field at a particular column.
\pythonnote{In place of a single overloaded method name, wxPython
implements the following methods:\par
\indented{2cm}{\begin{twocollist}
\twocolitem{\bf{SetItem(item)}}{Sets information about the given wxListItem.}
\twocolitem{\bf{SetStringItem(index, col, label, imageId)}}{Sets a
string or image at a given location.}
\end{twocollist}}
}
\membersection{wxListCtrl::SetItemData}\label{wxlistctrlsetitemdata}
\func{bool}{SetItemData}{\param{long }{item}, \param{long }{data}}