It is currently April 19th, 2024, 1:29 pm
Image hover Set option thing
-
- Posts: 142
- Joined: November 17th, 2021, 5:51 am
Re: Image hover Set option thing
Yes it worked. I was thinking how I could set the width/height or the X/Y stuff for the image
BOOTY
-
- Posts: 246
- Joined: July 8th, 2021, 11:30 pm
- Location: The King's Avenue, Golden Kingdom
Re: Image hover Set option thing
I am glad.
How big should the preview be?Alloutofmercy wrote: ↑November 20th, 2021, 4:02 pm I was thinking how I could set the width/height or the X/Y stuff for the image
the DA GALLERY For some Reason, the square root of X2 does not involve X
-
- Posts: 142
- Joined: November 17th, 2021, 5:51 am
Re: Image hover Set option thing
The size of the rectangular shape meter. Not for the Chrome icon but for the other image
BOOTY
-
- Posts: 246
- Joined: July 8th, 2021, 11:30 pm
- Location: The King's Avenue, Golden Kingdom
Re: Image hover Set option thing
Yes. I understood that. I wanted to know how big you want this other image to be.Alloutofmercy wrote: ↑November 20th, 2021, 4:24 pm The size of the rectangular shape meter. Not for the Chrome icon but for the other image
Anyway, you can do this:
- Remove the line W=30 from your code.
- Using an image viewer/editor, resize the chrome icon to 30 X 30 pixels
- Resize the other image to your liking.
- Refresh the skin
the DA GALLERY For some Reason, the square root of X2 does not involve X
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Image hover Set option thing
My assumption is that you want to enlarge a little bit the icon when hovering the mouse over it, then get back the original size, when leaving it. Am I right? If I am, it is entirely possible, but please confirm (or deny) first this is what you want to achieve.Alloutofmercy wrote: ↑November 20th, 2021, 4:02 pm Yes it worked. I was thinking how I could set the width/height or the X/Y stuff for the image
-
- Posts: 142
- Joined: November 17th, 2021, 5:51 am
Re: Image hover Set option thing
I dont want to enlarge the icon, But I wanted to enlarge the image it is showing when hoverd on.
Like can that image be replaced by an imagemeter or something so I can set its Height or width?
Like can that image be replaced by an imagemeter or something so I can set its Height or width?
You do not have the required permissions to view the files attached to this post.
BOOTY
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Image hover Set option thing
You want something like a preview window?Alloutofmercy wrote: ↑November 21st, 2021, 6:11 am I dont want to enlarge the icon, But I wanted to enlarge the image it is showing when hoverd on.
Like can that image be replaced by an imagemeter or something so I can set its Height or width?
P.S. the profile picture is OP.
from the Realm of Death
-
- Posts: 142
- Joined: November 17th, 2021, 5:51 am
-
- Rainmeter Sage
- Posts: 5391
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Image hover Set option thing
Use a separate Image meter for the preview. Using a separate image lets you set it's size and position.
Code: Select all
[Appchrome]
Meter=image
Imagename=#@#Icons\icons8-chrome-48
X=60
Y=220
W=30
LeftMouseUpAction=["Chrome.exe"]
MouseOverAction=[!SetOption #CURRENTSECTION# ImageName ""][!UpdateMeter #CURRENTSECTION#][!ShowMeter "AppChromePreview"][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "#*@*#Icons\icons8-chrome-48"][!UpdateMeter #CURRENTSECTION#][!HideMeter "AppChromePreview"][!Redraw]
[AppChromePreview]
Meter=Image
ImageName="#@#Images\{YourAppChromePreviewImage}"
X=r
Y=r
W=200
H=200
PreserveAspectRatio=2
Hidden=1
Notice the variable is 'escaped' in the MouseLeaveAction when used in !SetOption; this will set it as the literal #@# and not resolve it to @Resources\.
This doesn't matter in this case, but I always escape variable in !SetOption to prevent having them resolved to the current value, which resulting in them never responding to variable changes in the future.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Image hover Set option thing
Apart from eclectic tech's solution, you also can have a skin pop-up when you mouse over and the app is running. I don't know how you get the picture so I can't create an example right away. So I will wait for you to reveal your methods of fetching the image.
from the Realm of Death