//
wxControl(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos=wxDefaultPosition,
- const wxSize& size=wxDefaultSize,
- long style=0,
- const wxValidator& validator=wxDefaultValidator,
- const wxString& name=wxPyControlNameStr);
+ wxWindowID id,
+ const wxPoint& pos=wxDefaultPosition,
+ const wxSize& size=wxDefaultSize,
+ long style=0,
+ const wxValidator& validator=wxDefaultValidator,
+ const wxString& name=wxPyControlNameStr);
//
%name(wxPreControl)wxControl();
#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;
+
};
//----------------------------------------------------------------------
void SelectAll();
void SetEditable(bool editable);
+ bool IsSingleLine();
+ bool IsMultiLine();
+
+
%addmethods {
void write(const wxString& text) {
self->AppendText(text);
// 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);
}
}
};