Drag CurrentStatementSpanIndicator arrow

SyntaxEditor for Windows Forms Forum

Posted 8 years ago by matteo
Version: 4.0.0289
Avatar
Hi all, I create a CurrentStatementSpanIndicator in the margin of a line. Is there a way to drag that arrow and put it to another line like in Visual Studio debug mode?

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Check out our Indicators QuickStart. That shows how you can use a ViewMouseDown event to see if you double-click on an indicator glyph. You could use similar logic for your scenario except don't check for double-click. When a mouse down occurs, capture the mouse and see if it starts to drag. In the mouse move event while dragging, use SyntaxEditor's hit-testing feature to see if it moves to another line.

We don't have anything built-in to do this but you can harness the mouse events and hit testing features to accomplish it.


Actipro Software Support

The latest build of this product (v2018.1 build 0342) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.