Yes, agree, but this is what have you said. Otherwise if the meter is hidden, then indeed tooltip isn't shown.
It is currently April 28th, 2024, 2:39 am
Tooltip hot-spot
-
- Rainmeter Sage
- Posts: 16182
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Tooltip hot-spot
-
- Posts: 154
- Joined: May 14th, 2018, 4:46 pm
Re: Tooltip hot-spot
You can use ToolTipHidden option. When you show shape set ToolTipHidden=1 and when you hide it set ToolTipHidden=0.
-
- Posts: 134
- Joined: June 30th, 2014, 8:44 am
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: Tooltip hot-spot
Sorry for late reply. I had a few days trip, and caught a cold...too bad.
So, I finally got a workaround with reference to oZone. I have added a bang to hide tooltip when mouse hovers overlaying meter. Suc as;
With this workaround, my days of repose have come.
So, I finally got a workaround with reference to oZone. I have added a bang to hide tooltip when mouse hovers overlaying meter. Suc as;
Code: Select all
MouseOverAction=[!SetOption MeterClickableRegion ToolTipHidden 1][!UpdateMeter MeterClickableRegion][!Redraw]
MouseLeaveAction=[!SetOption MeterClickableRegion ToolTipHidden 0][!UpdateMeter MeterClickableRegion][!Redraw]
-
- Rainmeter Sage
- Posts: 7178
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Tooltip hot-spot
Or, if the hovered meter's coordinates and size are used instead of the skin's, one can use custom tooltips and forget about all of the OS tooltips' drawbacks...
All that's needed to "convert" a classic tooltip approach to a custom one is: a tooltip skin, the appropriate bangs added to whatever you already have in the MouseOver/MouseLeave actions, and the measure to populate the tooltip skin (where you'd simply paste the contents of the tooltip elements). If the tooltip skin and the contents of the tooltip elements (i.e. icon, title, text) already exist, the conversion process is a 30 seconds job max.
All that's needed to "convert" a classic tooltip approach to a custom one is: a tooltip skin, the appropriate bangs added to whatever you already have in the MouseOver/MouseLeave actions, and the measure to populate the tooltip skin (where you'd simply paste the contents of the tooltip elements). If the tooltip skin and the contents of the tooltip elements (i.e. icon, title, text) already exist, the conversion process is a 30 seconds job max.
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: Tooltip hot-spot
Hi Yincognito
Thank you for heads-up for "custom tooltips". I too have some frustrations to the Rainmeter tooltips as you said, other than this "hot-spot" problem.
For example;
1. Annoying flickering and twitching.
2. Sometimes prevent mouse actions by the overlapped position of the tooltip when target is somewhat small.
3. For tooltip icon, we must make the image separately as *.ico file.
4. Text styles even font face/size can not be set.
5. Can't place images (except header icon) in the tooltips.
6. Appearance position is not adjustable.
7. etc..etc..
Your "custom tooltips" method may get rid of these frustrations. But honestly...it is so high hurdle for unskilled me to implement. My level of Rainmeter skill is far far different from that of you, sadly.
I didn't do it yet, but hope I can try some time later.
Thank you for heads-up for "custom tooltips". I too have some frustrations to the Rainmeter tooltips as you said, other than this "hot-spot" problem.
For example;
1. Annoying flickering and twitching.
2. Sometimes prevent mouse actions by the overlapped position of the tooltip when target is somewhat small.
3. For tooltip icon, we must make the image separately as *.ico file.
4. Text styles even font face/size can not be set.
5. Can't place images (except header icon) in the tooltips.
6. Appearance position is not adjustable.
7. etc..etc..
Your "custom tooltips" method may get rid of these frustrations. But honestly...it is so high hurdle for unskilled me to implement. My level of Rainmeter skill is far far different from that of you, sadly.
I didn't do it yet, but hope I can try some time later.
-
- Rainmeter Sage
- Posts: 7178
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Tooltip hot-spot
My (probably) long post in the Tips & Tricks creates the impression of a high hurdle indeed. Other than that, only converting it from "skin tooltip" to "individual meter tooltip" could be considered somewhat "high hurdle", as the "skin tooltip" process is nothing complicated at all:mak_kawa wrote: ↑March 14th, 2020, 12:06 am Hi Yincognito
Thank you for heads-up for "custom tooltips". I too have some frustrations to the Rainmeter tooltips as you said, other than this "hot-spot" problem.
For example;
1. Annoying flickering and twitching.
2. Sometimes prevent mouse actions by the overlapped position of the tooltip when target is somewhat small.
3. For tooltip icon, we must make the image separately as *.ico file.
4. Text styles even font face/size can not be set.
5. Can't place images (except header icon) in the tooltips.
6. Appearance position is not adjustable.
7. etc..etc..
Your "custom tooltips" method may get rid of these frustrations. But honestly...it is so high hurdle for unskilled me to implement. My level of Rainmeter skill is far far different from that of you, sadly.
I didn't do it yet, but hope I can try some time later.
That being said, your workaround based on oZone's post is obviously very simple indeed, so you should probably stick to it. I only wanted to show that what you think is a "high hurdle" is neither that "high", nor that "hurdle", after all...
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16182
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Tooltip hot-spot
As far as I can tell, there's no such thing as a "Rainmeter tooltip". Tooltip is a Windows feature used by Rainmeter and as such, Rainmeter (simply using it) can't make any settings on it. There is no way to use it any other way than how Windows handles it.mak_kawa wrote: ↑March 14th, 2020, 12:06 am I too have some frustrations to the Rainmeter tooltips as you said, other than this "hot-spot" problem.
For example;
1. Annoying flickering and twitching.
2. Sometimes prevent mouse actions by the overlapped position of the tooltip when target is somewhat small.
3. For tooltip icon, we must make the image separately as *.ico file.
4. Text styles even font face/size can not be set.
5. Can't place images (except header icon) in the tooltips.
6. Appearance position is not adjustable.
7. etc..etc..
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Tooltip hot-spot
Correct. The advantage to using the ToolTip function built-into Rainmeter is that it allows Windows to do all the work of deciding where to display the tooltip, which would be a fair amount of work to dynamically get right, as well as the relative simplicity of using it. The downside is that there are indeed limited opportunities for customization. Just what Windows supports in the API, which is limited by design, as they have as much or more of an interest in standardizing how tooltips look and work in Windows as they do in giving you flexibility.
Feel free to write your own using a separate skin or some meters in the current skin as you like. I don't doubt some interesting things could be done with a little thought and work. But if you want the simplicity of ToolTip, you have to live with the limitations.
The biggest challenge, although certainly doable, is to get the tooltip to display at the right point relative to the mouse cursor, while making sure that it doesn't go off the screen in any direction. Also something to work on is to have the tooltip move with the mouse cursor in real-time. Going to be tough unless you set a really low Update rate or maybe use one of the mouse plugins. Then you have to decide and code for some kind of "timeout", unless you want to just use a brute-force "mouse over / mouse off" approach.
With all the cosmetic limitations of the tooltip in Windows, it is actually pretty clever, and would not be entirely trivial to replicate in all aspects.
-
- Rainmeter Sage
- Posts: 7178
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Tooltip hot-spot
Precisely. Having the OS worry about positioning and displaying tooltips is a pretty good argument for using them, along with their simplicity. Although I'm not sure how much tooltips will live in the age of smartphones and "mobile standardization"...jsmorley wrote: ↑March 14th, 2020, 4:56 pmCorrect. The advantage to using the ToolTip function built-into Rainmeter is that it allows Windows to do all the work of deciding where to display the tooltip, which would be a fair amount of work to dynamically get right, as well as the relative simplicity of using it. The downside is that there are indeed limited opportunities for customization. Just what Windows supports in the API, which is limited by design, as they have as much or more of an interest in standardizing how tooltips look and work in Windows as they do in giving you flexibility.
All these challenges (e.g. positioning, general relativity to the tooltip "parent") have already been solved in my implementation, except for displaying the tooltip relative to mouse cursor. While the latter would be entirely doable if Rainmeter would have a $MouseX$ and $MouseY$ that react not only on click/scroll but also on hover, it's not that big of a deal to have this "feature" missing. Positioning the tooltip relative to the "parent" skin or meter, while not as precise as relativity to the mouse cursor, is something one can live with, assuming the padding around the text / element that trigger the tooltip isn't exaggerate.jsmorley wrote: ↑March 14th, 2020, 4:56 pmFeel free to write your own using a separate skin or some meters in the current skin as you like. I don't doubt some interesting things could be done with a little thought and work. But if you want the simplicity of ToolTip, you have to live with the limitations.
The biggest challenge, although certainly doable, is to get the tooltip to display at the right point relative to the mouse cursor, while making sure that it doesn't go off the screen in any direction. Also something to work on is to have the tooltip move with the mouse cursor in real-time. Going to be tough unless you set a really low Update rate or maybe use one of the mouse plugins. Then you have to decide and code for some kind of "timeout", unless you want to just use a brute-force "mouse over / mouse off" approach.
With all the cosmetic limitations of the tooltip in Windows, it is actually pretty clever, and would not be entirely trivial to replicate in all aspects.
Moving with the mouse cursor (or with the parent skin or meter, in the current circumstances) doesn't require a low update rate at all ... for the simple reason that not even the OS tooltips do that (and when they do, they're no good anyway, due to constant flickering). A one second update of moving with the reference point (i.e. cursor/skin/meter) is totally reasonable, unless you really want to make the tooltip unusable either due to flickering (OS tooltips) or higher CPU usage (custom tooltips). Below is a 24 ms updated custom tooltip moving with the parent skin. It doesn't flicker like the OS tooltips, but it does use the CPU more (from 0.39/0.78/1.15 % to 20%): P.S. Yes, my entire skin suite - including the 2 sliding text "marquee" skins - take just 0.39 to 0.78 % CPU normally.
You do not have the required permissions to view the files attached to this post.