X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fb6c97e93b95f07ab68d067c8982fc746dccde4..402dfce7b324c977a5b396b07cd36835d5514e52:/docs/latex/wx/listbox.tex diff --git a/docs/latex/wx/listbox.tex b/docs/latex/wx/listbox.tex index 62c7679cd2..75e7b48b5b 100644 --- a/docs/latex/wx/listbox.tex +++ b/docs/latex/wx/listbox.tex @@ -10,7 +10,7 @@ selections). List box elements are numbered from zero. Their number is limited in some platforms (e.g. ca. 2000 on GTK). -A listbox callback gets an event wxEVT\_COMMAND\_LISTBOX\_SELECT for single clicks, and +A listbox callback gets an event wxEVT\_COMMAND\_LISTBOX\_SELECTED for single clicks, and wxEVT\_COMMAND\_LISTBOX\_DOUBLE\_CLICKED for double clicks. \wxheading{Derived from} @@ -201,6 +201,25 @@ parameter for wxPython, which is a list of strings.} \perlnote{In wxPerl there is just an array reference in place of {\tt nItems} and {\tt items}.} +\membersection{wxListBox::HitTest}\label{wxlistboxhittest} + +\constfunc{int}{HitTest}{\param{const wxPoint&}{ point}} + +Returns the item located at \arg{point}, or \texttt{wxNOT\_FOUND} if there +is no item located at \arg{point}. + +\newsince{2.7.0}. It is currently implemented for wxMSW, wxMac and wxGTK2 +ports. + +\wxheading{Parameters} + +\docparam{point}{Point of item (in client coordinates) to obtain} + +\wxheading{Return value} + +Item located at \arg{point}, or \texttt{wxNOT\_FOUND} if unimplemented +or the item does not exist. + \membersection{wxListBox::IsSelected}\label{wxlistboxisselected} \constfunc{bool}{IsSelected}{\param{int}{ n}}