![Avatar](https://secure.gravatar.com/avatar/2be8d2969ac759d393205edfb2d1eb63.jpg?s=64&d=identicon&r=g)
Hi,
When raising the MenuRequested event, the event argument SyntaxEditorMenuEventArgs can get the location of the mouse or the menu, but some keyboards have a context menu button that is not handled.
In this case I want to display the context menu wherever the cursor is in the editor, but have been unable to determine the position of the cursor as a Point object.
Example:
If e.HitTestResult IsNot Nothing AndAlso e.HitTestResult.Location <> Nothing Then
PopupMenu.Popup(SyntaxEditor1.PointToScreen(e.HitTestResult.Location), AddressOf SyntaxEditor1_PopupMenuClick)
ElseIf e.Menu IsNot Nothing AndAlso e.Menu.Location <> Nothing Then
PopupMenu.Popup(SyntaxEditor1.PointToScreen(e.Menu.Location), AddressOf SyntaxEditor1_PopupMenuClick)
Else
' TODO
End If
Is there any way to determine the location of the cursor?
Thanks
Gavin