]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/controls.i
Use the iconIndex in the default case too.
[wxWidgets.git] / wxPython / src / controls.i
index efc72fcafa893aad77450fd6bd9861032074b06f..96ca6cb7b401baba153b9ecafdf21eb5f90c8de5 100644 (file)
@@ -709,6 +709,11 @@ public:
 #ifndef __WXMAC__
     int GetItemHeight();
 #endif
+
+    // return the index of the item at this position or wxNOT_FOUND
+    int HitTest(const wxPoint& pt) const;
+    %name(HitTestXY)int HitTest(wxCoord x, wxCoord y) const;
+
 };
 
 //----------------------------------------------------------------------
@@ -857,6 +862,10 @@ public:
     void SelectAll();
     void SetEditable(bool editable);
 
+    bool IsSingleLine();
+    bool IsMultiLine();
+
+
     %addmethods {
         void write(const wxString& text) {
             self->AppendText(text);
@@ -866,7 +875,7 @@ public:
     // TODO: replace this when the method is really added to wxTextCtrl
     %addmethods {
         wxString GetString(long from, long to) {
-            return self->GetValue().Mid(from, to-from);
+            return self->GetValue().Mid(from, to - from);
         }
     }
 };