Posted 20 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 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Use EditorView.OffsetFromLocation.


Actipro Software Support

Posted 20 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 20 years ago by Greg Shaffer - Boulder
Avatar
NVM,

I will use

Document.Views[0].OffsetFromLocation ...

-Greg
Posted 20 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 (v24.1.0) 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.