Drag CurrentStatementSpanIndicator arrow

SyntaxEditor for Windows Forms Forum

Posted 10 years ago by matteo
Version: 4.0.0289
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 10 years ago by Actipro Software Support - Cleveland, OH, USA
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 (v21.1.1) was released 17 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.