]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_combobox.i
Added some info panels that show size and colour attributes about the widget
[wxWidgets.git] / wxPython / src / _combobox.i
index b5522f3ecbf5d0678d3822b32e1c23c3bf5f1cbb..ab262f9bf14f7de761501e5a321cc4d01a4413a8 100644 (file)
@@ -61,7 +61,7 @@ public:
     RefDoc(wxComboBox, ""); // turn it off for the ctors
     
     DocCtorAStr(
-        wxComboBox(wxWindow* parent, wxWindowID id,
+        wxComboBox(wxWindow* parent, wxWindowID id=-1,
                    const wxString& value = wxPyEmptyString,
                    const wxPoint& pos = wxDefaultPosition,
                    const wxSize& size = wxDefaultSize,
@@ -82,7 +82,7 @@ public:
 
 
     DocDeclAStr(
-        bool, Create(wxWindow *parent, wxWindowID id,
+        bool, Create(wxWindow *parent, wxWindowID id=-1,
                      const wxString& value = wxPyEmptyString,
                      const wxPoint& pos = wxDefaultPosition,
                      const wxSize& size = wxDefaultSize,
@@ -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),
         "");