From f8c88923b051ea51cb08369055f195ecb7e44e35 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 26 Apr 2004 22:26:39 +0000 Subject: [PATCH] SetStringSelection and etc. fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_choice.i | 2 +- wxPython/src/_combobox.i | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/wxPython/src/_choice.i b/wxPython/src/_choice.i index a0472e1d96..a4b46b980e 100644 --- a/wxPython/src/_choice.i +++ b/wxPython/src/_choice.i @@ -82,7 +82,7 @@ public: "Select the n'th item (zero based) in the list."); DocDeclStr( - void , SetStringSelection(const wxString& string), + bool , SetStringSelection(const wxString& string), "Select the item with the specifed string"); DocDeclStr( diff --git a/wxPython/src/_combobox.i b/wxPython/src/_combobox.i index 961a9554df..ac81948f49 100644 --- a/wxPython/src/_combobox.i +++ b/wxPython/src/_combobox.i @@ -138,10 +138,21 @@ public: DocDeclStr( void , SetSelection(int n), - "Selects the text between the two positions, in the combobox text field."); + "Sets the item at index 'n' to be the selected item."); - %name(SetMark) virtual void SetSelection(long from, long to); + DocDeclStrName( + virtual void , SetSelection(long from, long to), + "Selects the text between the two positions in the combobox text field." + SetMark); + DocDeclStr( + bool , SetStringSelection(const wxString& string), + "Select the item with the specifed string"); + + DocDeclStr( + void , SetString(int n, const wxString& string), + "Set the label for the n'th item (zero based) in the list."); + DocDeclStr( virtual void , SetEditable(bool editable), "");