RightClick/Contextual menu and Bookmarks

SyntaxEditor for WPF Forum

Posted 4 years ago by Stéphane Grenier
Version: 19.1.0686


I have added the bookmarks management to my SyntaxEditor.

I have button to toggled/enabled/disabled bookmarks. It works fine.

Now I want to add a contextual menu with actions to toggle/enable/disable

By default the caret doesn't move to the line of the right click. So the bookmark does not appear at the right place.

How to move the caret automatically to the mouse position when I right click?

Or is there a better way to proceed in this case?


Comments (2)

Answer - Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA


If you use our hit testing feature, you can tell the closest position.  Take a look at our Hit Testing QuickStart and as you move over the line number margin, you can see what I mean.  Then simply take that value and update the caret to be at that position.

Actipro Software Support

Posted 4 years ago by Stéphane Grenier

It works fine with Hit testing


The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.