It is currently May 8th, 2024, 10:07 pm

Mouse Actions Show Image

Get help with creating, editing & fixing problems with skins
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Mouse Actions Show Image

Post by jsmorley »

Assuming meter2 is the "bigger" meter, then yes.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Mouse Actions Show Image

Post by jsmorley »

The problem is that you are starting with a small image at position 0 of the skin, then adding a larger one on MouseOver, and asking the image to be positioned off the edge of the skin to the left. This isn't really possible. You need to anticipate this, by making that background image bigger, setting the smaller image at a positive X position, then set the second bigger one at 0.

[Rainmeter]
DynamicWindowSize=1
Update=1000

[MeterBackground]
Meter=Image
W=100
H=100
MouseOverAction=!RainmeterShowMeter MeterImage
MouseLeaveAction=!RainmeterHideMeter MeterImage

[Meter1]
Meter=Image
W=50
H=50
X=50
ImageName=#CURRENTPATH#arrowA.png
ToolTipText=SomeText
ToolTipType=0
ToolTipTitle=SomeTitle
ToolTipIcon=SHIELD
LeftMouseUpAction=!Execute [PLAY #CURRENTPATH#Sounds\NewClick.wav]

[MeterImage]
Meter=Image
ImageName=#CURRENTPATH#arrowB.png
W=100
H=100
X=0
Hidden=1
warlord_7
Posts: 15
Joined: March 27th, 2011, 1:19 pm

Re: Mouse Actions Show Image

Post by warlord_7 »

Well...still the same.. i even tried your example to be sure:
Image
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Mouse Actions Show Image

Post by jsmorley »

See my last post.
warlord_7
Posts: 15
Joined: March 27th, 2011, 1:19 pm

Re: Mouse Actions Show Image

Post by warlord_7 »

well yeah..that's nice but i can't stick the image to the screen edge then... it has ~50 pixels free space which won't ignored while dragging it to the screen, ergo i have the 50 pixel barrier from the edge
(yeah i know..my case is annoying)
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Mouse Actions Show Image

Post by jsmorley »

So if I understand correctly you want a small image to be displayed first, positioned on the far left of your screen. Then you want to display a larger image on "hover", but instead of having it start also at position 0 on the left, you want it to start at position -50 so it is "centered" on the smaller image.

Not really possible in any easy way. Rainmeter can't draw where the screen doesn't exist.

I must be missing something.