Set tooltip manually
-
@ustk hmmm, I could use the
.set
command and change it dynamically... I'll test and see if it works. -
It almost works. The panel only triggers the hover event when the mouse first moves over it. It doesn't trigger again until the mouse leaves the panel and goes over it again. So I can't continuously change the tooltip as the mouse moves over the various sections of the panel.
-
@d-healey Sorry I don't get it. So it works? or not as you'd like to?
I guess you want the tooltip to adapt to the different areas of the panel? -
@ustk said in Set tooltip manually:
I guess you want the tooltip to adapt to the different areas of the panel?
That's exactly what I want, but I can't get it to work because the hover event isn't continuous.
-
@d-healey you can use "event.x" and "event.y", they will give x and y positions continuous while hovering over the panel. So you will just have to set up some conditions to split the panel in different areas.
-
@d-healey Ok it's a bit dirty but maybe you can find something useful in there:
HiseSnippet 1720.3ocsXssabSDFdbZbU1sDJUhK3xQ4Bj2lv1MsMEDADayIHJMMKcKkMppTl0d7tih8LF6YSZZUjxkbIOB7H.uAUhKAwyBWxEHU9GO1qGuGRRiTcjRhm+Sey+o4ebqXgKMIQDirp73iinHq2yt8wbY+06SXbz1afrtlcKBmFrKkO.s1wQjjDpGxx5JeshAqJyhRe9muZMR.g6RKVBgdhf4Re.KjIKVsUycXAAaQ7nOlEZv8catsqfutHPL..yUrafhHtGP5QeHQw1L1HqqtoGSJhaKIRZBxZ10DdG2tu3Htl+mvRXcCnpWVF0FTjd4sDAdJDqVEsdeVfWq7McBBzRqBWvUztfOzdWlGa35EthOHk.tPBS+g0LmE7V1DdMt3vyx.dypg2Mra6FyhjETzgos4RZrOABAlvRyKZl+qh85BfCtrdH4.5VwvKCkv4dMZrDdkFMps57UA1RDAz5tATRriZk4qBglDI9PRLd+PZ3N7t3uDmqtdT45hvHAGdwYgL5KnjqPpNmiTcLjpr8h3oodSUxL5iXuCowRlKIXOe+DpDDdkFknyjzvugx50WQ61MJSjOH7QhiR.JKOFAHAcHASRwhiZG.Y6.sm9rTZ9hXrCCduwpXF9Kx0J7xhKV6UyWECO5emKa8nAI8cx1PpsoFgN0v2ZHltIlUa0pmT13thfy23JjOAimK6XF+6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VjowZ71ZrqIytNl1XaEHHv.l8dLCRTUl751lKsr4tbWCC2HpYV7WGrutcqXJTPuFzeMAPe2d425rxUA1+WkLp6GTr5u+le4MkW81pk+yW+lzkSyxr9U6zNfKnJVZSNjt1.oTvW3ygQSGPWZHoz66EOEhpVCIisppzUKv3z1hbHzEVRUWdtDwGl1BePXpL2A57gJmPN2oilP9igMmPnd7j+4zeP.S+8o6aFn+nQx8ijiZpS2qIZ7K1BWuV3MHfHKema0GZHi.zqqzkaUWfkCmxdrYJz6jKheQg6Mrawjt8mLdmYB3U0l7cLdy9rFyauouOLmcAXm0dqNu6+FFH8EC6AycDyfbFaH0rMTC4RAjvgLI04QVynN4P+dC06JOSaJ2K8k2.OYDWV8tUFwkyIhBItwhm6pOvP8gSlKcE.S7zueTE6cUuC8NyNmv1tQ8FnPlG64ttJWwm.Xexxb6KgL24RHycuDxrxkPl6cIj4SuDx7YmoLpOk18GHEg5xDXgVap6jZsIm.YYoYjn+GE62r+C
-
Thanks for that example. That does exactly what I want, and it also showed me why my version wasn't working...
@Christoph-Hart I think there might be a bug.
When the panel has AllowCallbacks set to Clicks and Hover it doesn't provide continuous x/y position. It only works when set to All Callbacks.
-
@ustk Great example, thanks for sharing! :)
-
@d-healey I found out that it's not a bug
In the documentation (the mouse event table in the script panel doc), there are different authorized levels for the different callback event that occurs... And the one we're using here (event.x
) needs the last callback levelAll Callbacks
.
I don't know about the necessity of this hierarchy for such a basic event though... -
...And because
Hovering
is not the same thing as "moving the mouse inside the panel" which is allowed only at top callback level.
following the chart,Hovering
means only "entering and leaving" which I guess is just aboolean
, where theevent.x/y
is the value obviously