Community Challenge: Tooltip that respects mouse position

  • Idea
  • Updated 5 years ago
Hi all,

With the latest features in 2.17, I think we now have all the required elements to create a tool tip that appears based on where you click the mouse.

At the moment, I am able to get a custom tooltip to appear when I want (Using the pause action) .. but, I'd like to have it appear over the element but focused on the tip of the mouse cursor depending on where I click.

Anyone up for the challenge of figuring out an elegant way to do this?

I'll try later .. but right now, I'm "in the juice" .. and can't spend any extra time figuring it out .. ;-)

I'm sure someone can get this working pretty quickly ..
Photo of Jeremy Kerr

Jeremy Kerr

  • 36 Posts
  • 0 Reply Likes
  • confident lots of members are going to try this challenge

Posted 5 years ago

  • 1
Photo of Xavier Young

Xavier Young, Official Rep

  • 1343 Posts
  • 151 Reply Likes
Hi Jeremy,

I just submitted an example for this: http://www.foreui.net/node/47

Enjoy it ;-)
Photo of Jeremy Kerr

Jeremy Kerr

  • 36 Posts
  • 0 Reply Likes
Awesome! Thanks!
I'll spend some time reverse-engineering it soon, and let you know if I have any questions ..
Photo of ronald.so

ronald.so

  • 15 Posts
  • 2 Reply Likes
When I select a button, add event for Mouse Over and Add Action, then Operate on Element, after choosing the button for the element, I only see three choices: change visibility, change location, change state. I do not see how I can add a tooltip. What did I miss?
Photo of Ulrich Böttger

Ulrich Böttger

  • 584 Posts
  • 18 Reply Likes
I've uploaded a more simple example, which you can download here:
http://www.egholm51.dk/foreui/tooltip...

There are only two elements in the example:

  1. A TextBox that is the tooltip itself

  2. A button that has a tooltip



You can't use "Operate on element". Instead you have to open the behaviour dialog for the button (in this example) and edit the "Change "TextBox_Tooltip" text to..."



Depending on the lenght of the tooltip text you can also change the size of the tooltip.

If you need linebreaks just write \n in the text.
Photo of Xavier Young

Xavier Young, Official Rep

  • 1343 Posts
  • 151 Reply Likes
Good work :-)

Your plot is listed in the community site now.
Photo of ronald.so

ronald.so

  • 15 Posts
  • 2 Reply Likes
Oh Groovy!!! :-D

My smile is much bigger than the first available icon of the left (in the How does this make you feel section underneath this comment box).
Photo of Ulrich Böttger

Ulrich Böttger

  • 584 Posts
  • 18 Reply Likes
:D