X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb5f907b2d9edcf471b1bd69acb470c35bd2ee1c..b3a029f0bbf8262cfe30914790802f88608ea618:/docs/latex/wx/combobox.tex diff --git a/docs/latex/wx/combobox.tex b/docs/latex/wx/combobox.tex index 76f9c15324..6c4bee1ae9 100644 --- a/docs/latex/wx/combobox.tex +++ b/docs/latex/wx/combobox.tex @@ -22,6 +22,10 @@ and the ready-to-use \helpref{wxBitmapComboBox}{wxbitmapcombobox}. +\wxheading{Library} + +\helpref{wxCore}{librarieslist} + \wxheading{Window styles} \begin{twocollist}\itemsep=0pt @@ -49,7 +53,8 @@ when an item on the list is selected. Note that calling \twocolitem{{\bf EVT\_TEXT(id, func)}}{Process a wxEVT\_COMMAND\_TEXT\_UPDATED event, when the combobox text changes.} \twocolitem{{\bf EVT\_TEXT\_ENTER(id, func)}}{Process a wxEVT\_COMMAND\_TEXT\_ENTER event, -when is pressed in the combobox.} +when is pressed in the combobox (notice that the combobox must have +been created with \texttt{wxTE\_PROCESS\_ENTER} style to receive this event).} \end{twocollist} \wxheading{See also} @@ -191,6 +196,16 @@ Copies the selected text to the clipboard. Copies the selected text to the clipboard and removes the selection. +\membersection{wxComboBox::GetCurrentSelection}\label{wxcomboboxgetcurrentselection} + +\constfunc{int}{GetCurrentSelection}{\void} + +This function does the same things as +\helpref{wxChoice::GetCurrentSelection}{wxchoicegetcurrentselection} and +returns the item currently selected in the dropdown list if it's open or the +same thing as \helpref{GetSelection}{wxcontrolwithitemsgetselection} otherwise. + + \membersection{wxComboBox::GetInsertionPoint}\label{wxcomboboxgetinsertionpoint} \constfunc{long}{GetInsertionPoint}{\void} @@ -208,6 +223,17 @@ doesn't have the focus. Returns the last position in the combobox text field. +\membersection{wxComboBox::GetSelection}\label{wxcomboboxgetselection} + +\constfunc{void}{GetSelection}{\param{long *}{from}, \param{long *}{to}} + +This is the same as \helpref{wxTextCtrl::GetSelection}{wxtextctrlgetselection} +for the text control which is part of the combobox. Notice that this is a +different method from \helpref{wxControlWithItems::GetSelection}{wxcontrolwithitemsgetselection}. + +Currently this method is only implemented in wxMSW and wxGTK. + + \membersection{wxComboBox::GetValue}\label{wxcomboboxgetvalue} \constfunc{wxString}{GetValue}{\void}