I was intend to use SciTE with lexer SCLEX_ERRORLIST as an output console for some loging system.
I wanted to be sure that user can not change content.
I was trying to use SCI_SETREADONLY .... but SCI_SETREADONLY is blocking also SCI_ADDTEXT so I can't send message (log reports) to console.
I'm wondering how to set ReadOnly status only for end-user and still keep possibility to use SCI_ADDTEXT in the script ?
I mean I want to push new messages but block input for end-user.
I do not see feature like SCI_SETBLOCKUSERINPUT or any other.
Is it currently possible to do this with Scintilla ?
If not: Would you add such feature ?
Regards,
Michał
I found that Scintilla has SCI_SETACCESSIBILITY function.
but it seams that this function do not works like I describe in opening post.
Last edit: mLipok 2018-11-02
Accessibility is about enabling use by people with disabilities: https://en.wikipedia.org/wiki/Accessibility.
If you want to call SCI_ADDTEXT then wrap it in calls to SCI_SETREADONLY:
Adding a SCI_SETBLOCKUSERINPUT is messy as applications and toolkits often mediate user input so a paste, for example, may look like it comes directly to Scintilla from the keyboard or it may be interpreted through menu code to become SCI_PASTE.