It is currently April 19th, 2024, 6:40 am

[NOT A BUG] DynamicWindowSize vs TransformationMatrix

Report bugs with the Rainmeter application and suggest features.
User avatar
Yincognito
Rainmeter Sage
Posts: 7125
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

[NOT A BUG] DynamicWindowSize vs TransformationMatrix

Post by Yincognito »

Hey, long time no see - here's your favorite bug tester with yet another bug report... :D

Skin:

Code: Select all

[Rainmeter]
Update=25
DynamicWindowSize=1
AccurateText=1

---Measures---

[Zoom]
Measure=Calc
Formula=((Zoom+0.01)%2)
DynamicVariables=1

---Meters---

[BoundingBox]
Meter=Image
W=100
H=100
SolidColor=255,0,0,255
TransformationMatrix=[Zoom:];0;0;[Zoom:];0;0
TooltipText=Zoom = [Zoom:]
DynamicVariables=1
Effect: The "image" size doesn't get past 100% of its original size, despite the "dynamic" window size.
Note: Don't bother testing hardcoded TM values, I tried already and it's the same story.
Last edited by Yincognito on July 9th, 2021, 5:05 pm, edited 1 time in total.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: DynamicWindowSize vs TransformationMatrix

Post by death.crafter »

Yincognito wrote: July 9th, 2021, 3:57 pm Effect: The "image" size doesn't get past 100% of its original size, despite the "dynamic" window size.
Note: Don't bother testing hardcoded TM values, I tried already and it's the same story.
Tester_1.rmskin
This will clear the confusion.
You do not have the required permissions to view the files attached to this post.
from the Realm of Death
User avatar
Yincognito
Rainmeter Sage
Posts: 7125
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: DynamicWindowSize vs TransformationMatrix

Post by Yincognito »

death.crafter wrote: July 9th, 2021, 4:03 pm Tester_1.rmskin

This will clear the confusion.
Not sure what confusion you're talking about though:

Code: Select all

[Rainmeter]
Update=25
DynamicWindowSize=1
AccurateText=1

---Measures---

[Zoom]
Measure=Calc
Formula=((Zoom+0.01)%2)
DynamicVariables=1

---Meters---

[BoundingBox]
Meter=Shape
Shape=Rectangle 0,0,100,100 | StrokeWidth 0 | Stroke Color 255,0,0,255 | Fill Color 255,0,0,255
TransformationMatrix=[Zoom:];0;0;[Zoom:];0;0
TooltipText=Zoom = [Zoom:]
DynamicVariables=1

Code: Select all

[Rainmeter]
Update=25
DynamicWindowSize=1
AccurateText=1

---Measures---

[Zoom]
Measure=Calc
Formula=((Zoom+0.01)%2)
DynamicVariables=1

---Meters---

[BoundingBox]
Meter=String
Text="What confusion?"
FontColor=255,0,0,255
TransformationMatrix=[Zoom:];0;0;[Zoom:];0;0
TooltipText=Zoom = [Zoom:]
DynamicVariables=1
Also:

Code: Select all

[Rainmeter]
Update=25
DynamicWindowSize=1
AccurateText=1

---Measures---

[Zoom]
Measure=Calc
Formula=((Zoom+0.01)%2)
DynamicVariables=1

---Meters---

[Background]
Meter=Image
W=200
H=200
SolidColor=255,255,0,255

[BoundingBox]
Meter=Image
W=100
H=100
SolidColor=255,0,0,255
TransformationMatrix=[Zoom:];0;0;[Zoom:];0;0
TooltipText=Zoom = [Zoom:]
DynamicVariables=1
and your own skin :sly: :

Code: Select all

[Rainmeter]
Update=25
DynamicWindowSize=1
AccurateText=1

---Measures---

[Zoom]
Measure=Calc
Formula=((Zoom+0.01)%2)

---Meters---

[Background]
Meter=Image
W=200
H=200
SolidColor=255,255,0,255

[BoundingBox]
Meter=Image
ImageName=XX.png
W=100
H=100
SolidColor=255,0,0,255
TransformationMatrix=[Zoom:];0;0;[Zoom:];0;0
TooltipText=Zoom = [Zoom:]
DynamicVariables=1
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
Yincognito
Rainmeter Sage
Posts: 7125
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: DynamicWindowSize vs TransformationMatrix

Post by Yincognito »

Actually, this might just be the expected behavior, on a second thought - so it's definitely not a bug:
Also note that the even if the meter's visual location and orientation is changed by the transformation the place where it would be located without the transformation will still be used to define the window size and register the mouse clicks.
Probably not the confusion death.crafter referred to (i.e. the manually set W and H restricting the viewport), but still a mistake: mine. So, disregard this fake bug report.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: DynamicWindowSize vs TransformationMatrix

Post by death.crafter »

Yincognito wrote: July 9th, 2021, 4:38 pm
Guess I was wrong. :oops:
from the Realm of Death
User avatar
Yincognito
Rainmeter Sage
Posts: 7125
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: DynamicWindowSize vs TransformationMatrix

Post by Yincognito »

death.crafter wrote: July 9th, 2021, 5:31 pm Guess I was wrong. :oops:
Well, I was wrong as well, just on a slightly different thing. :confused: Don't worry, at least we realized that (and where) we were wrong. Better luck next time. ;-)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth