Discussion:
SCN_MARGINCLICK
(too old to reply)
Col_Blimp
2014-07-19 23:28:18 UTC
Permalink
Im using automatic folding so the SCN_MARGINCLICK message is not sent
however I would like to perform a small action on folding so how do I tell
if the document is folding/unfolding without the SCN_MARGINCLICK message?
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Neil Hodgson
2014-07-19 23:47:01 UTC
Permalink
Im using automatic folding so the SCN_MARGINCLICK message is not sent however I would like to perform a small action on folding so how do I tell if the document is folding/unfolding without the SCN_MARGINCLICK message?
There doesn't appear to be a way. The automatic folding change added some high-level folding commands like SCI_FOLDLINE which should make it easier to implement your own SCN_MARGINCLICK.

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Col_Blimp
2014-07-20 00:14:05 UTC
Permalink
Thanks, using SCI_FOLDLINE I am now able to do whats needed but when
clicking the fold margin the fold will happen even if its not on the
SC_MARKNUM_FOLDEROPEN/SC_MARKNUM_FOLDER line so how do I make I test for
the correct line? SCI_MARKERGET seems to not get the fold margin markers
and as the document uses a lexer I'm not sure what the SCI_GETFOLDLEVEL
will be for
SC_MARKNUM_FOLDEROPEN/SC_MARKNUM_FOLDER
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Neil Hodgson
2014-07-21 05:05:25 UTC
Permalink
as the document uses a lexer I'm not sure what the SCI_GETFOLDLEVEL will be for
SC_MARKNUM_FOLDEROPEN/SC_MARKNUM_FOLDER
SC_FOLDLEVELHEADERFLAG

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Loading...