Jason Haslam:

I'm trying to get notifications of fold events from the
SCN_MODIFIED.  I'm do get a few SC_MOD_CHANGEFOLD notifications when
a document is opened, but I don't get any when the fold is initiated
by the user.

 SC_MOD_CHANGEFOLD only reports changes in the fold structure of a
document, not the view related changes performed by the user. The fold
structure is the level of each line and whether the line is a header
or is empty.

I'm using MarginClick() (and related functions)
borrowed from SciTE to do the folding.  In addition I don't see fold
notifications when a call to SCI_ENSUREVISIBLE causes a fold to
change.  Is this just the way it is, or am I doing something wrong?

 To track view-related fold information, include code in your
SCN_MARGINCLICK and SCN_NEEDSHOWN handlers and anywhere your code
explicitly folds.

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

Reply via email to