Posted 15 years ago by Greg Shaffer - Boulder
Avatar
What is the best way to determine when the cursor is hovering above a token? I want to show an intelliprompt describing the token on hover. The OnMouseHover provides the location, so if there is a way to get a token at a location then I'd be all set.

Thanks,
Greg

Comments (4)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Use EditorView.OffsetFromLocation.


Actipro Software Support

Posted 15 years ago by Greg Shaffer - Boulder
Avatar
How do I get to an EditorView if I have a SyntaxEditor. The function doesn't appear to be static.

Thanks,
Greg
Posted 15 years ago by Greg Shaffer - Boulder
Avatar
NVM,

I will use

Document.Views[0].OffsetFromLocation ...

-Greg
Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You would use:
editor.Document.CurrentView.OffsetFromLocation


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 7 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.