]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/combobox.tex
Cleaned up SetMenuStrings, factoring out redo and undo label accessors at the same...
[wxWidgets.git] / docs / latex / wx / combobox.tex
index e0a17ea3d5f736de0bea139c831ce3ff248deec1..fea3ae559c18bf4114032c8f4abea5762a185393 100644 (file)
@@ -67,6 +67,8 @@ Constructor, creating and showing a combobox.
 
 \docparam{id}{Window identifier. A value of -1 indicates a default value.}
 
 
 \docparam{id}{Window identifier. A value of -1 indicates a default value.}
 
+\docparam{value}{Initial selection string. An empty string indicates no selection.}
+
 \docparam{pos}{Window position.}
 
 \docparam{size}{Window size. If the default size (-1, -1) is specified then the window is sized
 \docparam{pos}{Window position.}
 
 \docparam{size}{Window size. If the default size (-1, -1) is specified then the window is sized
@@ -101,11 +103,11 @@ Destructor, destroying the combobox.
 
 \membersection{wxComboBox::Append}\label{wxcomboboxappend}
 
 
 \membersection{wxComboBox::Append}\label{wxcomboboxappend}
 
-\func{void}{Append}{\param{const wxString\& }{item}}
+\func{int}{Append}{\param{const wxString\& }{item}}
 
 Adds the item to the end of the combobox.
 
 
 Adds the item to the end of the combobox.
 
-\func{void}{Append}{\param{const wxString\& }{ item}, \param{void* }{clientData}}
+\func{int}{Append}{\param{const wxString\& }{ item}, \param{void* }{clientData}}
 
 Adds the item to the end of the combobox, associating the given data
 with the item.
 
 Adds the item to the end of the combobox, associating the given data
 with the item.
@@ -116,6 +118,11 @@ with the item.
 
 \docparam{clientData}{Client data to associate with the item.}
 
 
 \docparam{clientData}{Client data to associate with the item.}
 
+\wxheading{Return value}
+
+The index of the newly added item, may be different from the last one if the
+control has {\tt wxLB\_SORT} style.
+
 \membersection{wxComboBox::Clear}\label{wxcomboboxclear}
 
 \func{void}{Clear}{\void}
 \membersection{wxComboBox::Clear}\label{wxcomboboxclear}
 
 \func{void}{Clear}{\void}
@@ -327,6 +334,20 @@ Selects the text between the two positions, in the combobox text field.
 \pythonnote{The second form of this method is called {\tt SetMark} in
 wxPython.}
 
 \pythonnote{The second form of this method is called {\tt SetMark} in
 wxPython.}
 
+\membersection{wxComboBox::SetString}\label{wxcomboboxsetstring}
+
+\func{void}{SetString}{\param{int }{n}, \param{const wxString\& }{text}}
+
+Replaces the specified string in the control with another one.
+
+\wxheading{Parameters}
+
+\docparam{n}{The zero-based index of the string to replace}
+
+\docparam{text}{The new value for this item}
+
+{\bf NB:} This method is currently not implemented in wxGTK.
+
 \membersection{wxComboBox::SetValue}\label{wxcomboboxsetvalue}
 
 \func{void}{SetValue}{\param{const wxString\& }{text}}
 \membersection{wxComboBox::SetValue}\label{wxcomboboxsetvalue}
 
 \func{void}{SetValue}{\param{const wxString\& }{text}}