Changes needed to solve wxPython's OOR problem for the wxOGL shapes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -622,6 +622,13 @@ public:
|
||||
|
||||
// returns false if we have any attributes set, true otherwise
|
||||
bool IsDefault();
|
||||
|
||||
// return the attribute having the valid font and colours: it uses the
|
||||
// attributes set in attr and falls back first to attrDefault and then to
|
||||
// the text control font/colours for those attributes which are not set
|
||||
static wxTextAttr Combine(const wxTextAttr& attr,
|
||||
const wxTextAttr& attrDef,
|
||||
const wxTextCtrl *text);
|
||||
};
|
||||
|
||||
|
||||
@@ -727,6 +734,13 @@ public:
|
||||
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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user