Ok,

This is line. ([TAB] is indenting tab character)

[TAB1    ][TAB2     ]some text

I move a caret to start of [TAB1] and type some character (for example "p"). Scintilla puts a "p" characted and seems to replace [TAB1] with spaces. But only notification I get is (using pseudo language):

SCN_MODIFIED(SC_MOD_INSERTTEXT, position = [pos], length = 1, ch = (int)'p')

But about the replacement of [TAB1] with spaces it says nothing. I would like to be notified with notifications (tabsize = 8):

SCN_MODIFIED(SC_MOD_DELETETEXT, position = [pos], length = 1) // delele '\t'
SCN_MODIFIED(SC_MOD_INSERTTEXT, position = [pos], length = 1) // insert 'p'
SCN_MODIFIED(SC_MOD_INSERTTEXT, position = [pos+1], length = tabsize-1) // insert spaces

-Martin


Neil Hodgson wrote:
Martin Cohen:

there is a functionality in Scintilla which transforms TAB character in
indentation to set of spaces when I insert some character in it. I'm
using Scintilla 1.68. The functionality is okay, but Scintilla is not
sending SC_MODIFIED message to my wrapper.


  Describe in detail the text being modified, the key being pressed
and the notifications being received and expected.

  Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to