X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eaaa6a06a25774c18d10bb8182cc1934ed0ed9aa..7b3be6cb27e2c01f3cf4c14c9859d9fe0199b124:/docs/latex/wx/combobox.tex diff --git a/docs/latex/wx/combobox.tex b/docs/latex/wx/combobox.tex index 4d79cda441..52d509551a 100644 --- a/docs/latex/wx/combobox.tex +++ b/docs/latex/wx/combobox.tex @@ -14,6 +14,10 @@ A combobox permits a single selection only. Combobox items are numbered from zer \helpref{wxEvtHandler}{wxevthandler}\\ \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + \wxheading{Window styles} \begin{twocollist}\itemsep=0pt @@ -26,9 +30,20 @@ displaying the current selection.} See also \helpref{window styles overview}{windowstyles}. +\wxheading{Event handling} + +\twocolwidtha{7cm} +\begin{twocollist}\itemsep=0pt +\twocolitem{{\bf EVT\_COMBOBOX(id, func)}}{Process a wxEVT\_COMMAND\_COMBOBOX\_SELECTED event, +when an item on the list is selected.} +\twocolitem{{\bf EVT\_TEXT(id, func)}}{Process a wxEVT\_COMMAND\_TEXT\_UPDATED event, +when the combobox text changes.} +\end{twocollist} + \wxheading{See also} -\helpref{wxListBox}{wxlistbox}, \helpref{wxTextCtrl}{wxtextctrl}, \helpref{wxChoice}{wxchoice} +\helpref{wxListBox}{wxlistbox}, \helpref{wxTextCtrl}{wxtextctrl}, \helpref{wxChoice}{wxchoice}, +\rtfsp\helpref{wxCommandEvent}{wxcommandevent} \latexignore{\rtfignore{\wxheading{Members}}} @@ -70,6 +85,11 @@ appropriately.} \helpref{wxComboBox::Create}{wxcomboboxcreate}, \helpref{wxValidator}{wxvalidator} +\pythonnote{The wxComboBox constructor in wxPython reduces the \tt{n} +and \tt{choices} arguments are to a single argument, which is +a list of strings.} + + \membersection{wxComboBox::\destruct{wxComboBox}} \func{}{\destruct{wxComboBox}}{\void} @@ -209,8 +229,7 @@ Returns the current value in the combobox text field. \constfunc{int}{Number}{\void} Returns the number of items in the combobox list. - -TODO: make this GetNumber or GetCount? +%TODO: make this GetNumber or GetCount? \membersection{wxComboBox::Paste}\label{wxcomboboxpaste}