Hi Neil,
as I can't find an obvious error in my code I tried to do the same with lua and SciTE and it
seems that the result is the same so I assume I still have a understanding problem.
From my point of view I do, more or less, the same as what you do in SciTE C++ code.
The lua script I use is the following
-- Test annotation set with ... SetStyle
use_offset = true
if use_offset == true then
editor:ReleaseAllExtendedStyles()
style_offset = editor:AllocateExtendedStyles(10)
editor.AnnotationStyleOffset = style_offset
ERROR_MSG_ID = 0
else
ERROR_MSG_ID = 60
end
print('style_offset:' .. editor.AnnotationStyleOffset)
editor.StyleFore[ERROR_MSG_ID] = 0xaf
editor.StyleBack[ERROR_MSG_ID] = 0xc1c1c1
editor.AnnotationVisible = ANNOTATION_BOXED
editor:AnnotationClearAll()
editor.AnnotationText[0] = 'Just one line of info'
editor.AnnotationStyle[0] = ERROR_MSG_ID
print('Done')
which works as long as I'm not using the offset functionality.
without_offset_testBut when I set use_offset = true then it styles id 0 instead of offset+0, like seen here
with_offset_testMay I ask you what I've misunderstood?
Thank you
Claudia