derive wxSTC from wxTextEntryBase to provide even more wxTextCtrl-like methods (see #9114)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-06-15 01:16:52 +00:00
parent 2bfca191bf
commit 9357892714
4 changed files with 134 additions and 16 deletions

View File

@@ -483,9 +483,9 @@ methodOverrideMap = {
'GetText' :
(0,
'wxString %s();',
'wxString %s() const;',
'''wxString %s() {
'''wxString %s() const {
int len = GetTextLength();
wxMemoryBuffer mbuf(len+1); // leave room for the null...
char* buf = (char*)mbuf.GetWriteBuf(len+1);
@@ -663,6 +663,8 @@ constNonGetterMethods = set((
'LineFromPosition',
'PositionFromLine',
'LineLength',
'CanRedo',
'CanUndo',
))
#----------------------------------------------------------------------------