#52 SCI_SETTEXT ignored in read-only mode

Feature_Request
closed-rejected
Neil Hodgson
Scintilla (788)
1
2002-07-05
2002-07-04
Blair McGlashan
No

SCI_SETTEXT has no effect when Scintilla is in read-
only mode. This is not consistent with the Windows
TextEdit and RichEdit controls, which permit
programmatic modification. The Windows controls'
behaviour seems more sensible since this allows one to
display text that the user cannot modify without having
to turn off read-only mode and then reset it after setting
the text. IMO read-only mode should only prevent the
modification of text through the UI, not programmatic
modifications.

Discussion

    • priority: 5 --> 1
     
  • Neil Hodgson
    Neil Hodgson
    2002-07-05

    • assigned_to: nobody --> nyamatongwe
    • status: open --> closed-rejected
     
  • Neil Hodgson
    Neil Hodgson
    2002-07-05

    Logged In: YES
    user_id=12579

    If you want to change the text then set to read-write and then
    change the text, then set to read only. Most 'programmatic
    modifications' are triggered by user issued commands, often
    initiated by UI outside Scintilla such as a menu item. Having
    API calls respect the read-only state allows a single call to
    block all modifications no matter which layer of the system
    (direct keyboard and mouse / user driven commands /
    macros / application) cause the modification.