RightClick/Contextual menu and Bookmarks

SyntaxEditor for WPF Forum

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

Hi,

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?

Thanks

Comments (2)

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

Hello,

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
Avatar

It works fine with Hit testing

Thanks!

The latest build of this product (v24.1.3) was released 29 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.