It is currently April 19th, 2024, 2:38 am

Problem with button image and background

Get help with creating, editing & fixing problems with skins
FreakQuency
Posts: 33
Joined: May 4th, 2010, 4:38 pm

Problem with button image and background

Post by FreakQuency »

Image

Like in the picture the whole skin became clickable which i didnt intend to because its not draggable now.i tried replacing the button images with trimmed transparent ones and that solved the problem.but after that it became very difficult to adjust the button images' position and rotation. the code for show/hide settings panel is as follows:

Code: Select all

[Rainmeter]
Author=Freakquency85.deviantart.com , fresenius85@gmail.com
MouseOverAction=!execute [!RainmeterShowMeter btnbg][!RainmeterShowMeter gears][!RainmeterRedraw]
MouseLeaveAction=!execute [!RainmeterHideMeter btnbg][!RainmeterHideMeter gears][!RainmeterRedraw]
Update=5000

[Metadata]


[Variables]
@include=#SKINSPATH#\Corner_Calendar_v2\cornercal_configurable_1.2\Configure\UserVariables.inc

calheight=300
calwidth=300



;================button========================;



[btnbg]
Meter=IMAGE
ImageName=btnbg.png
X=0
Y=0
H=(#calheight# / #Divider#)
W=(#calwidth# / #Divider#)
AntiAlias=1
ImageTint=#Color1#
ImageAlpha=#Alpha1#
ImageRotate=#Angle#
Hidden=1
LeftMouseDownAction=!Execute ["#SKINSPATH#\Corner_Calendar_v2\cornercal_configurable_1.2\Configure\config.exe"]


[gears]
Meter=IMAGE
ImageName=gears.png
X=0
Y=0
H=(#calheight# / #Divider#)
W=(#calwidth# / #Divider#)
AntiAlias=1
ImageTint=#Color2#
ImageAlpha=#Alpha2#
ImageRotate=#Angle#
Hidden=1
LeftMouseDownAction=!Execute ["#SKINSPATH#\Corner_Calendar_v2\cornercal_configurable_1.2\Configure\config.exe"]
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with button image and background

Post by jsmorley »

If I understand you correctly, you want to change any LeftMouseDownAction statements to LeftMouseUpAction. Then you can left click a meter to take some action while still being able to drag it.
FreakQuency
Posts: 33
Joined: May 4th, 2010, 4:38 pm

Re: Problem with button image and background

Post by FreakQuency »

thanks very much that solved the problem.I never used upaction and didnt know what is it for till now:)