Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scintilla control modifies line text and Lexer
#4
you need to allocate the string buffer

SCI_GETCURLINE
Code:
Copy      Help
int length=SendMessage(sci SCI.SCI_GETCURLINE 0 0)
str text.all(length 2)
SendMessage(sci SCI.SCI_GETCURLINE length text)
mes text

SCI_GETLINE
Code:
Copy      Help
int cp=SendMessage(sci SCI.SCI_GETCURRENTPOS 0 0)
int line=SendMessage(sci SCI.SCI_LINEFROMPOSITION cp 0)
int length2=SendMessage(sci SCI.SCI_LINELENGTH line 0)
str text.all(length2 2)
SendMessage(sci SCI.SCI_GETLINE line text)
mes text


Messages In This Thread
RE: Scintilla control modifies line text and Lexer - by Kevin - 02-16-2023, 03:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)