Discussion:
About API SCI_INDICATORSTART
minico
2014-04-28 01:16:48 UTC
Permalink
Hi Neil,
I have some confusion about the 2nd parameter of message SCI_INDICATORSTART.
For example, If there is an indicator 10 at position 100,
When I run Call(SCI_INDICATORSTART, 10, 0), it always returns 0;
but if I run Call(SCI_INDICATORSTART, 10, 100), it will return 100.

By scintilla document, the 2nd parameter is the position start to search
the specified indicator.
so I think when I run Call(SCI_INDICATORSTART, 10, 0), it should returns
100; right?
--
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-04-28 03:55:25 UTC
Permalink
Post by minico
I have some confusion about the 2nd parameter of message SCI_INDICATORSTART.
For example, If there is an indicator 10 at position 100,
When I run Call(SCI_INDICATORSTART, 10, 0), it always returns 0;
but if I run Call(SCI_INDICATORSTART, 10, 100), it will return 100.
By scintilla document, the 2nd parameter is the position start to search the specified indicator.
so I think when I run Call(SCI_INDICATORSTART, 10, 0), it should returns 100; right?
It may be better to think of indicators not as something that exist at particular positions but as something that has a value at every position. So you have a situation in which indicator 10 has value 0 from position 0 to 100 and value 1 after that. The SCI_INDICATORSTART API provides a way to find the position where a value started.

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...