current line indicator

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by phruby
Avatar
I am designing a debugger simular to visual studio. When I'm tracing thru the code, I would like Syntax editor to display a yellow highlight over the current line to execute with an arrow in the line number margin. How can I create the yellow highlighted text and arrow based on a given line number?

Comments (3)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You just create a class that inherits from SpanIndicator. Then implement the DrawGlyph method to draw the arrow and GetHighlightingStyle to return a highlighting style for the text.


Actipro Software Support

Posted 15 years ago by phruby
Avatar
Do you have an example of this? I'm new to this stuff.
Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Check out this posting:
<A HREF="http://www.actiprosoftware.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=11&t=000153" TARGET=_blank>http://www.actiprosoftware.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=11&t=000153</A>


Actipro Software Support

The latest build of this product (v2020.1 build 0400) was released 7 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.