andyblak wrote:Thank you very much for your help, balala! This resolved the issue.
I'm glad.
But there is one more approach, too.
According to this one, you should modify you code, to put the properties of the shape into different options, then modify just the needed one. For this you have to replace the Shape option of the [MeterAllBackground] meter, with the following one:
Shape=Rectangle 1,1,197,170,12 | Extend MyModifier1, MyModifier2. See that here I replaced the fill and stroke properties with MyModifier1 and MyModifier2, which we have to define on the same Shape meter. To define them, add the following two options, to the [MeterAllBackground] meter:
Code: Select all
[MeterAllBackground]
...
MyModifier1=Fill Color #BackgroundSoft#
MyModifier2=StrokeWidth 0.5 | Stroke Color #LabelColor#,150
Now the only thing which must be updated when you're hovering the mouse over the meter, respectively when you're leaving it, is the MyModifier1 option. Replace the MouseOverAction and MouseLeaveAction options with the following ones:
Code: Select all
[MeterAllBackground]
...
MouseOverAction=[!SetOption #CURRENTSECTION# MyModifier1 "Fill Color #BackgroundFill#"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# MyModifier1 "Fill Color #BackgroundSoft#"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
Maybe this approach can be a bit more understandable for many, being, I think, a bit more concise.