Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool tip support #54

Closed
gerdwagner opened this issue May 8, 2014 · 3 comments
Closed

Tool tip support #54

gerdwagner opened this issue May 8, 2014 · 3 comments

Comments

@gerdwagner
Copy link

I would be nice to have a tool tips that could depend on the position / word the mouse pointer is over.

@ghost
Copy link

ghost commented May 31, 2014

Did you check this?
#30

@TomasMikula
Copy link
Member

Hi Gerd,

you can now get the index of the character under the mouse when the mouse pauses over the text. The delay before the event is fired is configurable. This should be all you need to implement custom tooltips.

See mouseOverTextDelayProperty and the custom tooltips demo.

Let me know if it worked.

@gerdwagner
Copy link
Author

Hi Tomas,

Am 09.06.2014 15:35, schrieb TomasMikula:

Hi Gerd,

you can now get the index of the character under the mouse when the
mouse pauses over the text. The delay before the event is fired is
configurable. This should be all you need to implement custom tooltips.

See mouseOverTextDelayProperty
http://www.fxmisc.org/richtext/javadoc/org/fxmisc/richtext/StyledTextArea.html#mouseOverTextDelayProperty
and the custom tooltips demo
https://github.com/TomasMikula/RichTextFX#custom-tooltips.

Let me know if it worked.

Works great. Thanks a lot.

All it needed was just a simple variation of your example. Here it is:
http://sourceforge.net/p/squirrel-sql/git/ci/master/tree/sqfx/core/src/org/squirrelsql/session/sql/syntax/ErrorToolTipHandler.java

Gerd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants