SkinWidth
SkinHeight
http://docs.rainmeter.net/manual-beta/skins/rainmeter-section#SkinWidthHeight
Either or both of these can be defined.
This will constrain the skin to the dimensions defined, either the width, the height, or both. Any meter or part of a meter positioned outside the defined boundaries will be truncated. DynamicWindowSize will be ignored for the defined dimension(s), and meters that would normally display even "outside" the skin will be truncated by the "fixed" skin dimensions.
This can be very useful for having some meter(s) initially defined outside the left/top/right/bottom boundaries of the skin, and then pop or slide into view on mouse or measure actions.
Note that any part of any meter(s) that is "outside" the defined boundaries in one sense "doesn't exist", so all variables and settings that are related to skin "size", like #CURRENTCONFIGWIDTH#, KeepOnScreen, SnapToEdges, DragMargins and such all behave as expected. However, any [SectionName:W] or [SectionName:H] defined by a meter will be the entire value and not truncated, so that should be considered when using these values with relative positioning.
As with all options set in the [Rainmeter] section of the skin, these options cannot be dynamically changed.
Example skin:
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
SkinWidth=300
SkinHeight=112
[Metadata]
Name=SkinWH
Author=JSMorley
Information=Example of the new SkinWidth / SkinHeight skin options in [Rainmeter].||The ActionTimer plugin used for the demonstration is included.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=Aug 15, 2015
[Variables]
U=[!UpdateMeasureGroup Sliders][!UpdateMeter *][!Redraw]
SlideLeftX=300
SlideRightX=0
SlideDownY=-14
SlideUpY=126
[MeterSlideDownBack]
Meter=Image
X=0
Y=0
W=300
H=28
SolidColor=0,0,0,255
SolidColor2=47,67,87,255
MouseOverAction=[!CommandMeasure SliderDown "Stop 2"][!CommandMeasure SliderDown "Execute 1"]
MouseLeaveAction=[!CommandMeasure SliderDown "Stop 1"][!CommandMeasure SliderDown "Execute 2"]
[MeterSlideDown]
Meter=String
X=150
Y=#SlideDownY#
FontSize=15
FontColor=168,205,240,255
AntiAlias=1
StringAlign=CenterCenter
DynamicVariables=1
Text=Sliding Text Down
[SliderDown]
Group=Sliders
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideDown, 5, 7
SlideDown=[!SetVariable SlideDownY (Clamp(#SlideDownY#+4,-14,14))]#U#
ActionList2=Repeat SlideUp, 5, 7
SlideUp=[!SetVariable SlideDownY (Clamp(#SlideDownY#-4,-14,14))]#U#
DynamicVariables=1
[MeterSlideLeftBack]
Meter=Image
X=0
Y=28
W=300
H=28
SolidColor=0,0,0,255
SolidColor2=47,67,87,255
MouseOverAction=[!CommandMeasure SliderLeft "Stop 2"][!CommandMeasure SliderLeft "Execute 1"]
MouseLeaveAction=[!CommandMeasure SliderLeft "Stop 1"][!CommandMeasure SliderLeft "Execute 2"]
[MeterSlideLeft]
Meter=String
X=#SlideLeftX#
Y=42
FontSize=15
FontColor=168,205,240,255
Padding=10,0,0,0
AntiAlias=1
StringAlign=LeftCenter
DynamicVariables=1
Text=Sliding Text Left
[SliderLeft]
Group=Sliders
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideLeft, 10, 20
SlideLeft=[!SetVariable SlideLeftX (Clamp(#SlideLeftX#-15,0,300))]#U#
ActionList2=Repeat SlideRight, 10, 20
SlideRight=[!SetVariable SlideLeftX (Clamp(#SlideLeftX#+15,0,300))]#U#
DynamicVariables=1
[MeterSlideRightBack]
Meter=Image
X=0
Y=56
W=300
H=28
Solidcolor=0,0,0,255
SolidColor2=47,67,87,255
MouseOverAction=[!CommandMeasure SliderRight "Stop 2"][!CommandMeasure SliderRight "Execute 1"]
MouseLeaveAction=[!CommandMeasure SliderRight "Stop 1"][!CommandMeasure SliderRight "Execute 2"]
[MeterSlideRight]
Meter=String
X=#SlideRightX#
Y=70
FontSize=15
FontColor=168,205,240,255
Padding=0,0,10,0
AntiAlias=1
StringAlign=RightCenter
DynamicVariables=1
Text=Sliding Text Right
[SliderRight]
Group=Sliders
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideRight, 10, 20
SlideRight=[!SetVariable SlideRightX (Clamp(#SlideRightX#+15,0,300))]#U#
ActionList2=Repeat SlideLeft, 10, 20
SlideLeft=[!SetVariable SlideRightX (Clamp(#SlideRightX#-15,0,300))]#U#
DynamicVariables=1
[MeterSlideUpBack]
Meter=Image
X=0
Y=84
W=300
H=28
SolidColor=0,0,0,255
SolidColor2=47,67,87,255
MouseOverAction=[!CommandMeasure SliderUp "Stop 2"][!CommandMeasure SliderUp "Execute 1"]
MouseLeaveAction=[!CommandMeasure SliderUp "Stop 1"][!CommandMeasure SliderUp "Execute 2"]
[MeterSlideUp]
Meter=String
X=150
Y=#SlideUpY#
FontSize=15
FontColor=168,205,240,255
AntiAlias=1
StringAlign=CenterCenter
DynamicVariables=1
Text=Sliding Text Up
[SliderUp]
Group=Sliders
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideUp, 5, 7
SlideUp=[!SetVariable SlideUpY (Clamp(#SlideUpY#-4,98,126))]#U#
ActionList2=Repeat SlideDown, 5, 7
SlideDown=[!SetVariable SlideUpY (Clamp(#SlideUpY#+4,98,126))]#U#
DynamicVariables=1
[MeterOverlay]
Meter=String
X=150
Y=63
FontSize=63
FontColor=150,150,150,50
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=SLIDE