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}
// all generic methods are in wxControlWithItems
+ // get the current selection: this can only be different from the normal
+ // selection if the popup items list is currently opened and the user
+ // selected some item in it but didn't close the list yet; otherwise (and
+ // currently always on platforms other than MSW) this is the same as
+ // GetSelection()
+ virtual int GetCurrentSelection() const { return GetSelection(); }
+
// set/get the number of columns in the control (as they're not supported on
// most platforms, they do nothing by default)
virtual void SetColumns(int WXUNUSED(n) = 1 ) { }
#endif // wxUSE_CHOICE
-#endif
- // _WX_CHOICE_H_BASE_
+#endif // _WX_CHOICE_H_BASE_
virtual bool CanUndo() const = 0;
virtual bool CanRedo() const = 0;
+ // may return value different from GetSelection() when the combobox
+ // dropdown is shown and the user selected, but not yet accepted, a value
+ // different from the old one in it
+ virtual int GetCurrentSelection() const { return GetSelection(); }
// redeclare inherited SetSelection() overload here as well to avoid
// virtual function hiding
void Clear();
int GetSelection() const;
- int GetCurrentSelection() const { return GetSelection(); }
void SetSelection(int n);
virtual unsigned int GetCount() const;
void Clear();
int GetSelection() const;
- int GetCurrentSelection() const { return GetSelection(); }
virtual void SetSelection(int n);
virtual unsigned int GetCount() const;
virtual unsigned int GetCount() const ;
virtual int GetSelection() const ;
virtual void SetSelection(int n);
- int GetCurrentSelection() const { return GetSelection(); }
virtual int FindString(const wxString& s, bool bCase = false) const;
virtual wxString GetString(unsigned int n) const ;
virtual void Clear();
virtual int GetSelection() const;
- int GetCurrentSelection() const { return GetSelection(); }
virtual void SetSelection(int n);
virtual int FindString(const wxString& s, bool bCase = false) const;
virtual wxString GetString(unsigned int n) const;
virtual unsigned int GetCount() const;
virtual int GetSelection(void) const;
- virtual int GetCurrentSelection(void) const { return GetSelection(); }
virtual void SetSelection(int n);
virtual wxString GetString(unsigned int n) const;