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:
@@ -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',
|
||||
))
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user