
Hi,
I´m using SyntaxEditor with WordWrapMode set to Word.
What I want to do now is to add an adorner at the start of certain viewlines (depending on certain tokens at the line start). The text should slide to right where ever an adorner is drawn.
What I did is adding IIntraTextSpacerTags to a tagger in the Format method in a ITextFormater. An AdornerManager consumes the tags draws the adorners.
The problem now is that sometimes the adorners are drawn at the end of the previous line even though the tag are created using the StartOffset of the viewline.
If I try to adjust the width of the adorner (by setting the endoffset of the TagVersionRange when creating the tag) the same adorner did not jump on the previous line.
Is the approach to solve this problem - using a TextFormater and an Adorner - correct? If not how can this be achieved?
Is it correct that an adorner that still fits on the previous line will be drawn there if the WordWrapMode is set to Word? If so, can this be avoided?
Thanks in advance.
I´m using SyntaxEditor with WordWrapMode set to Word.
What I want to do now is to add an adorner at the start of certain viewlines (depending on certain tokens at the line start). The text should slide to right where ever an adorner is drawn.
What I did is adding IIntraTextSpacerTags to a tagger in the Format method in a ITextFormater. An AdornerManager consumes the tags draws the adorners.
The problem now is that sometimes the adorners are drawn at the end of the previous line even though the tag are created using the StartOffset of the viewline.
If I try to adjust the width of the adorner (by setting the endoffset of the TagVersionRange when creating the tag) the same adorner did not jump on the previous line.
Is the approach to solve this problem - using a TextFormater and an Adorner - correct? If not how can this be achieved?
Is it correct that an adorner that still fits on the previous line will be drawn there if the WordWrapMode is set to Word? If so, can this be avoided?
Thanks in advance.