Menu

#1239 SCI_SETREADONLY - only for user, like " SCI_SETBLOCKUSERINPUT "

Won't_Implement
closed
nobody
5
2019-01-11
2018-10-31
mLipok
No

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ł

Discussion

  • mLipok

    mLipok - 2018-11-02

    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
  • Neil Hodgson

    Neil Hodgson - 2018-11-18

    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:

    SCI_SETREADONLY(0)
    SCI_ADDTEXT(4, "text")
    SCI_SETREADONLY(1)
    

    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.

     
  • Neil Hodgson

    Neil Hodgson - 2018-11-18
    • labels: --> scintilla, input
    • Group: Completed --> Won't_Implement
     
  • Neil Hodgson

    Neil Hodgson - 2019-01-11
    • status: open --> closed
     

Log in to post a comment.