X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e730a78765d0e70ca5b77512569c94585070fe2..3527f29c8769e09d796c547c0c309f8b86407012:/contrib/src/stc/gen_iface.py?ds=sidebyside diff --git a/contrib/src/stc/gen_iface.py b/contrib/src/stc/gen_iface.py index 885357f398..aa9432d377 100644 --- a/contrib/src/stc/gen_iface.py +++ b/contrib/src/stc/gen_iface.py @@ -395,7 +395,7 @@ methodOverrideMap = { int len = end - start; if (!len) return wxEmptyString; - wxMemoryBuffer mbuf(len+1); + wxMemoryBuffer mbuf(len+2); char* buf = (char*)mbuf.GetWriteBuf(len+1); SendMsg(%s, 0, (long)buf); mbuf.UngetWriteBuf(len); @@ -547,9 +547,12 @@ methodOverrideMap = { 'GrabFocus' : (None, 0, 0, 0), + + # Rename some that woudl otherwise hid the wxWindow methods 'SetFocus' : ('SetSTCFocus', 0, 0, 0), 'GetFocus' : ('GetSTCFocus', 0, 0, 0), - + 'SetCursor' : ('SetSTCCursor', 0, 0, 0), + 'GetCursor' : ('GetSTCCursor', 0, 0, 0), 'LoadLexerLibrary' : (None, 0,0,0),