made wxChoice and wxComboBox::GetSelection() return only completed selection in wxMSW; added GetCurrentSelection() with the old behaviour and documented it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -37,6 +37,7 @@ when an item on the list is selected.}
|
||||
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
|
||||
\membersection{wxChoice::wxChoice}\label{wxchoicector}
|
||||
|
||||
\func{}{wxChoice}{\void}
|
||||
@@ -87,12 +88,14 @@ a list of strings.}
|
||||
\perlnote{In wxPerl there is just an array reference in place of {\tt n}
|
||||
and {\tt choices}.}
|
||||
|
||||
|
||||
\membersection{wxChoice::\destruct{wxChoice}}\label{wxchoicedtor}
|
||||
|
||||
\func{}{\destruct{wxChoice}}{\void}
|
||||
|
||||
Destructor, destroying the choice item.
|
||||
|
||||
|
||||
\membersection{wxChoice::Create}\label{wxchoicecreate}
|
||||
|
||||
\func{bool}{Create}{\param{wxWindow *}{parent}, \param{wxWindowID}{ id},\rtfsp
|
||||
@@ -109,6 +112,7 @@ Destructor, destroying the choice item.
|
||||
|
||||
Creates the choice for two-step construction. See \helpref{wxChoice::wxChoice}{wxchoicector}.
|
||||
|
||||
|
||||
\membersection{wxChoice::Delete}\label{wxchoicedelete}
|
||||
|
||||
\func{void}{Delete}{\param{int }{n}}
|
||||
@@ -119,6 +123,7 @@ Deletes the item with the given index from the control.
|
||||
|
||||
\docparam{n}{The item to delete.}
|
||||
|
||||
|
||||
\membersection{wxChoice::GetColumns}\label{wxchoicegetcolumns}
|
||||
|
||||
\constfunc{int}{GetColumns}{\void}
|
||||
@@ -130,6 +135,23 @@ Gets the number of columns in this choice item.
|
||||
This is implemented for Motif only and always returns $1$ for the other
|
||||
platforms.
|
||||
|
||||
|
||||
\membersection{wxChoice::GetCurrentSelection}\label{wxchoicegetcurrentselection}
|
||||
|
||||
\constfunc{int}{GetCurrentSelection}{\void}
|
||||
|
||||
Unlike \helpref{GetSelection}{wxcontrolwithitemsgetselection} which only
|
||||
returns the accepted selection value, i.e. the selection in the control once
|
||||
the user closes the dropdown list, this function returns the current selection.
|
||||
That is, while the dropdown list is shown, it returns the currently selected
|
||||
item in it. When it is not shown, its result is the same as for the other
|
||||
function.
|
||||
|
||||
\newsince{2.6.2} (before this version
|
||||
\helpref{GetSelection}{wxcontrolwithitemsgetselection} itself behaved like
|
||||
this).
|
||||
|
||||
|
||||
\membersection{wxChoice::SetColumns}\label{wxchoicesetcolumns}
|
||||
|
||||
\func{void}{SetColumns}{\param{int}{ n = 1}}
|
||||
|
Reference in New Issue
Block a user