John Vella
2012-04-25 21:25:11 UTC
I've either found a bug or I'm doing something wrong (entirely
possible/likely). When adding an annotation to a line, then showing the
fold margin (which was initially set with a width of zero), the call to
SCI_ANNOTATIONCLEARALL actually causes the line that had the annotation to
be removed from the window. So for example, if I have in a plain text file
(no lexer assigned) these lines:
line1
line2
line3
then do the following sequence
SCI_ANNOTATIONSETTEXT 1 hello
SCI_ANNOTATIONSETVISIBLE ANNOTATION_BOXED <<< the text "hello" appears
below the second line
SCI_SETMARGINWIDTHN 2 10 <<< the fold margin appears, but
"hello" is now gone
SCI_ANNOTATIONCLEARALL
I notice that immediately after showing the fold margin that the annotation
text on the second line is cleared. Then the call to "clearall" causes the
second line to disappear!!
Am I missing a step when I display the previously hidden fold margin to
ensure that lines with annotations keep the annotation text?
Thanks,
-John
possible/likely). When adding an annotation to a line, then showing the
fold margin (which was initially set with a width of zero), the call to
SCI_ANNOTATIONCLEARALL actually causes the line that had the annotation to
be removed from the window. So for example, if I have in a plain text file
(no lexer assigned) these lines:
line1
line2
line3
then do the following sequence
SCI_ANNOTATIONSETTEXT 1 hello
SCI_ANNOTATIONSETVISIBLE ANNOTATION_BOXED <<< the text "hello" appears
below the second line
SCI_SETMARGINWIDTHN 2 10 <<< the fold margin appears, but
"hello" is now gone
SCI_ANNOTATIONCLEARALL
I notice that immediately after showing the fold margin that the annotation
text on the second line is cleared. Then the call to "clearall" causes the
second line to disappear!!
Am I missing a step when I display the previously hidden fold margin to
ensure that lines with annotations keep the annotation text?
Thanks,
-John
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scintilla-interest/-/Y-JMQCL7358J.
To post to this group, send email to scintilla-***@googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scintilla-interest/-/Y-JMQCL7358J.
To post to this group, send email to scintilla-***@googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.