Yes, it is possible, though you have to do a lot of the work yourself. You
can actually intercept the low level text insertions and deletions that
happen as a result of the built-in bindings, and allow or reject the
insertions based on whatever criteria you want.
You can, for example, check the ta
Dear all,
I want to create a text box with folding capabilities.
To show/hide lines of text (probably using the elide function)
but when I hide the text I want it to be replaced by one line
+ 10 lines folded
that extends to the full width of the text widget
and the editing is disabled on