It is currently April 28th, 2024, 1:10 am

Button Meter mouse over vs non mouse over on mouse up

Report bugs with the Rainmeter application and suggest features.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Button Meter mouse over vs non mouse over on mouse up

Post by jsmorley »

Coren wrote:It seems to happen no matter where I click on the button. Even if my mouse is over the opaque parts of both images. Am I understanding you correctly that it should work if I click in a certain aria that is opaque in both frames?
Did that XTest.rmskin I posted work as it should for you?
Coren
Posts: 9
Joined: August 6th, 2012, 1:39 am

Re: Button Meter mouse over vs non mouse over on mouse up

Post by Coren »

I don't mean to bust your balls or anything. I am just curious about what is going on in the Button Meter so that I might be able to use it better. :)
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Button Meter mouse over vs non mouse over on mouse up

Post by jsmorley »

Coren wrote:I don't mean to bust your balls or anything. I am just curious about what is going on in the Button Meter so that I might be able to use it better. :)
It's no problem at all. It is something to do with transparency on the button frames or on a meter behind the button or something, I just can't quite put my finger on it. Try that XTest.rmskin that I posted and let me know if that works correctly, as it has neither of those concerns.
Coren
Posts: 9
Joined: August 6th, 2012, 1:39 am

Re: Button Meter mouse over vs non mouse over on mouse up

Post by Coren »

that button is working as it should. I guess it is as you said about the image. I don't know what else it could be.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Button Meter mouse over vs non mouse over on mouse up

Post by jsmorley »

Coren wrote:that button is working as it should. I guess it is as you said about the image. I don't know what else it could be.
Yes, it is related to that somehow.

To be honest, I'm not a big Meter=Button fan. The button images are a pain to make and the functionality can pretty much be duplicated with Meter=Image.

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[MeterImage]
Meter=Image
ImageName=Off.png
Path=#@#Images\
MouseOverAction=[!SetOption MeterImage ImageName Over.png][!UpdateMeter MeterImage][!Redraw]
MouseLeaveAction=[!SetOption MeterImage ImageName Off.png][!UpdateMeter MeterImage][!Redraw]
LeftMouseDownAction=[!SetOption MeterImage ImageName Down.png][!UpdateMeter MeterImage][!Redraw]
LeftMouseUpAction=["Notepad.exe"][!SetOption MeterImage ImageName Over.png][!UpdateMeter MeterImage][!Redraw]
ImageButton_.rmskin
You do not have the required permissions to view the files attached to this post.
Coren
Posts: 9
Joined: August 6th, 2012, 1:39 am

Re: Button Meter mouse over vs non mouse over on mouse up

Post by Coren »

Is there a way to make that draggable?
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Button Meter mouse over vs non mouse over on mouse up

Post by jsmorley »

Coren wrote:Is there a way to make that draggable?
You would have to hold down CTRL while you drag. I tend to design things so there are better and more obvious places on the skin to drag with.
Coren
Posts: 9
Joined: August 6th, 2012, 1:39 am

Re: Button Meter mouse over vs non mouse over on mouse up

Post by Coren »

Cool cool, Thank you for all your help. I really appreciate it. :)
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Button Meter mouse over vs non mouse over on mouse up

Post by jsmorley »

Coren wrote:Cool cool, Thank you for all your help. I really appreciate it. :)
Glad to help.