Mouse detection is detected by meter boundaries (except for the Shape meter). This means overlapping meters can trigger mouse actions from other meters since the mouse is technically over the same meter - as long as there is any non-transparent pixel showing from the skin.
The order of mouse actions performed on any pixel depends on the z-order of the meter. When the mouse action is performed, Rainmeter first looks at the topmost meter and executes any mouse actions if needed, then it looks at the next meter layer down and executes those mouse action if needed. And so on. Any mouse action defined in the
[Rainmeter] section are performed last.
I believe the Shape meter is the only mouse detection that is different.
If you have overlapping meters, you might be able to re-order them to achieve your desired behavior. In your example, if you place the button before the Triangle and declare some extra mouse actions, you can get different results.
Code: Select all
[Rainmeter]
Update=500
[MeterDetection]
Meter=Image
X=10R
Y=0
W=10
H=10
SolidColor=255,0,0,255
[MeterButton]
Meter=Image
ImageName=Resources/Button.png
MouseOverAction=[!SetOption MeterDetection SolidColor 255,0,0,255]
MouseLeaveAction=[!SetOption MeterDetection SolidColor 255,0,0,255]
[MeterTriangle]
Meter=Image
ImageName=Resources/Triangle.png
MouseOverAction=[!SetOption MeterDetection SolidColor 0,255,0,255]
MouseLeaveAction=[!SetOption MeterDetection SolidColor 255,0,0,255]
This way the Triangle triggers the color change, and the button doesn't (at least visually). I am not sure if that will help you in your "real" skin.
-Brian