It is currently September 15th, 2019, 8:58 pm

Cutting off text outside of skin area (Not ClipString)

Help with creating, editing & fixing problems with skins
User avatar
hyprdmg
Posts: 37
Joined: May 23rd, 2010, 5:05 pm

Cutting off text outside of skin area (Not ClipString)

hyprdmg » September 9th, 2019, 2:01 pm

Hello,

I am working on a skin based on GameView, and have a marquee feature, however, the text doesn't seem to cut off at the correct area.

Image

Code: Select all

[Rainmeter]
Update=-1
DynamicWindowSize=1

[Metadata]
Name=PlexView
Author=Vicious Ned and Dylan Key

[Variables]
TextColour=192,192,192
ShortcutColour=0,0,0,1
MouseOverColour=229,160,13
TextSize=12
Font=Segoe UI
AntiAlias=1
ScreenHeight=#SCREENAREAHEIGHT@2#
BarWidth=350
TopMargin=10
LeftMargin=15
Spacing=15
LinkHeight=26
NumOfApps=(#ScreenHeight#/(#TextSize#+#Spacing#))
animationSpeed=24
marqueeBeginWait=1500
marqueeEndWait=1500
marquee1=15
marquee2=15
marquee3=15

[MeasureFolder]
Measure=Plugin
Plugin=FileView
Path="#@#\Shortcuts"
Count=#NumOfApps#
ShowDotDot=1
HideExtensions=1

;[MeasureFolder]
;Measure=Plugin
;Plugin=FileView
;Path="E:\Media\"
;Count=#NumOfApps#
;ShowDotDot=1
;HideExtensions=1


;*****MEASURES*****


[mLink1]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=1
[mName1]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=1

[mLink2]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=2
[mName2]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=2

[mLink3]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=3
[mName3]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=3

[mLink4]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=4
[mName4]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=4

[mLink5]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=5
[mName5]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=5

[mLink6]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=6
[mName6]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=6

[mLink7]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=7
[mName7]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=7

[mLink8]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=8
[mName8]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=8

[mLink9]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=9
[mName9]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=9

[mLink10]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=10
[mName10]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=10

[mLink11]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=11
[mName11]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=11

[mLink12]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=12
[mName12]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=12

[mLink13]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=13
[mName13]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=13

[mLink14]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=14
[mName14]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=14

[mLink15]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=15
[mName15]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=15

[mLink16]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=16
[mName16]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=16

[mLink17]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=17
[mName17]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=17

[mLink18]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=18
[mName18]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=18

[mLink19]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=19
[mName19]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=19

[mLink20]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=20
[mName20]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=20

[mLink21]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=21
[mName21]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=21

[mLink22]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=22
[mName22]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=22

[mLink23]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=23
[mName23]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=23

[mLink24]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=24
[mName24]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=24

[mLink25]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=25
[mName25]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=25

[mLink26]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=26
[mName26]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=26

[mLink27]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=27
[mName27]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=27

[mLink28]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=28
[mName28]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=28

[mLink29]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=29
[mName29]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=29

[mLink30]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=30
[mName30]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=30

[mLink31]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=31
[mName31]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=31

[mLink32]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=32
[mName32]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=32

[mLink33]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=33
[mName33]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=33

[mLink34]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=34
[mName34]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=34

[mLink35]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=35
[mName35]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=35

[mLink36]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=36
[mName36]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=36


[mLink37]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=37
[mName37]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=37

[mLink38]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=38
[mName38]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=38

[mLink39]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=39
[mName39]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=39

[mLink40]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
Index=40
[mName40]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=40


;*****METERS*****


[MouseOverBar]
Meter=Image
W=10
H=#ScreenHeight#
SolidColor=0,0,0,1
MouseOverAction=[!ShowMeterGroup PlexGroup][!UpdateMeterGroup PlexGroup][!Redraw]

[View]
Meter=Image
Group=PlexGroup
H=#ScreenHeight#
PreserveAspectRatio=2
Hidden=1
DynamicVariables=1
ImageName=""

[Background]
Meter=Image
MeasureName=MeasureScroll
Group=PlexGroup
SolidColor=40,42,45
W=#BarWidth#
H=#ScreenHeight#
Padding=0,0,1,0
AntiAlias=1
Hidden=1
MouseLeaveAction=[!HideMeterGroup PlexGroup][!Update]
MouseScrollDownAction=[!CommandMeasure "MeasureFolder" IndexDown][!UpdateMeasureGroup "FileView"][!UpdateMeterGroup "PlexGroup"][!Redraw]
MouseScrollUpAction=[!CommandMeasure "MeasureFolder" IndexUp][!UpdateMeasureGroup "FileView"][!UpdateMeterGroup "PlexGroup"][!Redraw]

;*****Animation Stuff*****


[MeasureMarquee1Offset]
Measure=Calc
Formula=max(0,([Link1:W] - [MeterTextContainer1:W]))
DynamicVariables=1

[MeasureMarquee2Offset]
Measure=Calc
Formula=max(0,([Link2:W] - [MeterTextContainer2:W]))
DynamicVariables=1

[MeasureMarquee3Offset]
Measure=Calc
Formula=max(0,([Link3:W] - [MeterTextContainer3:W]))
DynamicVariables=1

[MeasureActionTimer]
Measure=Plugin
Plugin=ActionTimer
; Marquee 1
ActionList1=Wait #marqueeBeginWait# | Repeat Move1,#animationSpeed#,[MeasureMarquee1Offset:] | Wait #marqueeEndWait# | Reset1 | Wait #marqueeBeginWait# | DoOver1
Reset1=[!SetVariable marquee1 15][!UpdateMeasure MeasureActionTimer][!UpdateMeter Link1][!Redraw]
Move1=[!SetVariable marquee1 "(#marquee1# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter Link1][!Redraw]
DoOver1=[!CommandMeasure MeasureActionTimer "Execute 1"]
; Marquee 2
ActionList2=Wait #marqueeBeginWait# | Repeat Move2,#animationSpeed#,[MeasureMarquee2Offset:] | Wait #marqueeEndWait# | Reset2 | Wait #marqueeWait# | DoOver2
Reset2=[!SetVariable marquee2 15][!UpdateMeasure MeasureActionTimer][!UpdateMeter Link2][!Redraw]
Move2=[!SetVariable marquee2 "(#marquee2# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter Link2][!Redraw]
DoOver2=[!CommandMeasure MeasureActionTimer "Execute 2"]
; Marquee 3
ActionList3=Wait #marqueeBeginWait# | Repeat Move3,#animationSpeed#,[MeasureMarquee3Offset:] | Wait #marqueeEndWait# | Reset3 | Wait #marqueeBeginWait# | DoOver3
Reset3=[!SetVariable marquee3 15][!UpdateMeasure MeasureActionTimer][!UpdateMeter Link3][!Redraw]
Move3=[!SetVariable marquee3 "(#marquee3# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter Link3][!Redraw]
DoOver3=[!CommandMeasure MeasureActionTimer "Execute 3"]
DynamicVariables=1


;*****LINKS*****


[Link1]
Meter=String
MeasureName=mName1
Group=PlexGroup
H=#LinkHeight#
X=#marquee1#
Y=#TopMargin#
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
;Text=.....................................................................................
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink1 FollowPath][!Update]
MouseOverAction=[!SetOption Link1 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName1].jpg"][!Update]
MouseLeaveAction=[!SetOption Link1 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1
[StyleText1]
X=#LeftMargin#
Antialias=1
Container=MeterTextContainer1
DynamicVariables=1
[MeterTextContainer1]
Meter=Image
SolidColor=255,0,0,100
X=#LeftMargin#
Y=0r
H=26

[Link2]
Meter=String
MeasureName=mName2
Group=PlexGroup
SolidColor=255,0,0,100
X=#marquee2#
Y=(#Spacing#+#TextSize#)r
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
Text=%1
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink2 FollowPath][!Update]
MouseOverAction=[!SetOption Link2 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName2].jpg"][!CommandMeasure MeasureActionTimer "Execute 2"][!Update]
MouseLeaveAction=[!SetOption Link2 FontColor #TextColour#][!SetOption View ImageName ""][!CommandMeasure MeasureActionTimer "Stop 2"][!SetVariable marquee2 15][!Update]
DynamicVariables=1
[StyleText2]
H=#LinkHeight#
X=#marquee2#
Antialias=1
Container=MeterTextContainer2
DynamicVariables=1
[MeterTextContainer2]
Meter=Image
X=#LeftMargin#
Y=0r
H=2
W=(#BarWidth#-#LeftMargin#)

[Link3]
Meter=String
MeasureName=mName3
Group=PlexGroup
X=#marquee3#
Y=(#Spacing#+#TextSize#)r
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
Text=%1
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink3 FollowPath][!Update]
MouseOverAction=[!SetOption Link3 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName3].jpg"][!CommandMeasure MeasureActionTimer "Execute 3"][!Update]
MouseLeaveAction=[!SetOption Link3 FontColor #TextColour#][!CommandMeasure MeasureActionTimer "Stop 3"][!SetVariable marquee3 15][!SetOption View ImageName ""][!Update]
DynamicVariables=1
[StyleText3]
X=#LeftMargin#
Antialias=1
Container=MeterTextContainer3
DynamicVariables=1
[MeterTextContainer3]
Meter=Image
X=#LeftMargin#
Y=0r
H=26

[Link4]
Meter=String
MeasureName=mName4
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink4 FollowPath][!Update]
MouseOverAction=[!SetOption Link4 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName4].jpg"][!Update]
MouseLeaveAction=[!SetOption Link4 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1
[StyleText4]
X=#LeftMargin#
Antialias=1
Container=MeterTextContainer4
DynamicVariables=1
[MeterTextContainer4]
Meter=Image
X=#LeftMargin#
Y=0r
H=26

[Link5]
Meter=String
MeasureName=mName5
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink5 FollowPath][!Update]
MouseOverAction=[!SetOption Link5 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName5].jpg"][!Update]
MouseLeaveAction=[!SetOption Link5 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link6]
Meter=String
MeasureName=mName6
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink6 FollowPath][!Update]
MouseOverAction=[!SetOption Link6 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName6].jpg"][!Update]
MouseLeaveAction=[!SetOption Link6 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link7]
Meter=String
MeasureName=mName7
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink7 FollowPath][!Update]
MouseOverAction=[!SetOption Link7 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName7].jpg"][!Update]
MouseLeaveAction=[!SetOption Link7 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link8]
Meter=String
MeasureName=mName8
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink8 FollowPath][!Update]
MouseOverAction=[!SetOption Link8 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName8].jpg"][!Update]
MouseLeaveAction=[!SetOption Link8 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link9]
Meter=String
MeasureName=mName9
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink9 FollowPath][!Update]
MouseOverAction=[!SetOption Link9 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName9].jpg"][!Update]
MouseLeaveAction=[!SetOption Link9 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link10]
Meter=String
MeasureName=mName10
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink10 FollowPath][!Update]
MouseOverAction=[!SetOption Link10 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName10].jpg"][!Update]
MouseLeaveAction=[!SetOption Link10 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link11]
Meter=String
MeasureName=mName11
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink11 FollowPath][!Update]
MouseOverAction=[!SetOption Link11 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName11].jpg"][!Update]
MouseLeaveAction=[!SetOption Link11 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link12]
Meter=String
MeasureName=mName12
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink12 FollowPath][!Update]
MouseOverAction=[!SetOption Link12 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName12].jpg"][!Update]
MouseLeaveAction=[!SetOption Link12 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link13]
Meter=String
MeasureName=mName13
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink13 FollowPath][!Update]
MouseOverAction=[!SetOption Link13 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName13].jpg"][!Update]
MouseLeaveAction=[!SetOption Link13 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link14]
Meter=String
MeasureName=mName14
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink14 FollowPath][!Update]
MouseOverAction=[!SetOption Link14 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName14].jpg"][!Update]
MouseLeaveAction=[!SetOption Link14 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link15]
Meter=String
MeasureName=mName15
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink15 FollowPath][!Update]
MouseOverAction=[!SetOption Link15 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName15].jpg"][!Update]
MouseLeaveAction=[!SetOption Link15 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link16]
Meter=String
MeasureName=mName16
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink16 FollowPath][!Update]
MouseOverAction=[!SetOption Link16 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName16].jpg"][!Update]
MouseLeaveAction=[!SetOption Link16 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link17]
Meter=String
MeasureName=mName17
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink17 FollowPath][!Update]
MouseOverAction=[!SetOption Link17 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName17].jpg"][!Update]
MouseLeaveAction=[!SetOption Link17 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link18]
Meter=String
MeasureName=mName18
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink18 FollowPath][!Update]
MouseOverAction=[!SetOption Link18 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName18].jpg"][!Update]
MouseLeaveAction=[!SetOption Link18 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link19]
Meter=String
MeasureName=mName19
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink19 FollowPath][!Update]
MouseOverAction=[!SetOption Link19 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName19].jpg"][!Update]
MouseLeaveAction=[!SetOption Link19 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link20]
Meter=String
MeasureName=mName20
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink20 FollowPath][!Update]
MouseOverAction=[!SetOption Link20 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName20].jpg"][!Update]
MouseLeaveAction=[!SetOption Link20 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link21]
Meter=String
MeasureName=mName21
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink21 FollowPath][!Update]
MouseOverAction=[!SetOption Link21 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName21].jpg"][!Update]
MouseLeaveAction=[!SetOption Link21 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link22]
Meter=String
MeasureName=mName22
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink22 FollowPath][!Update]
MouseOverAction=[!SetOption Link22 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName22].jpg"][!Update]
MouseLeaveAction=[!SetOption Link22 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link23]
Meter=String
MeasureName=mName23
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink23 FollowPath][!Update]
MouseOverAction=[!SetOption Link23 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName23].jpg"][!Update]
MouseLeaveAction=[!SetOption Link23 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link24]
Meter=String
MeasureName=mName24
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink24 FollowPath][!Update]
MouseOverAction=[!SetOption Link24 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName24].jpg"][!Update]
MouseLeaveAction=[!SetOption Link24 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1

[Link25]
Meter=String
MeasureName=mName25
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink25 FollowPath][!Update]
MouseOverAction=[!SetOption Link25 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName25].jpg"][!Update]
MouseLeaveAction=[!SetOption Link25 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link26]
Meter=String
MeasureName=mName26
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink26 FollowPath][!Update]
MouseOverAction=[!SetOption Link26 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName26].jpg"][!Update]
MouseLeaveAction=[!SetOption Link26 FontColor #TextColour#][!SetOption View ImageName ""][!Update]

[Link27]
Meter=String
MeasureName=mName27
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink27 FollowPath][!Update]
MouseOverAction=[!SetOption Link27 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName27].jpg"][!Update]
MouseLeaveAction=[!SetOption Link27 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link28]
Meter=String
MeasureName=mName28
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink28 FollowPath][!Update]
MouseOverAction=[!SetOption Link28 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName28].jpg"][!Update]
MouseLeaveAction=[!SetOption Link28 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link29]
Meter=String
MeasureName=mName29
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink29 FollowPath][!Update]
MouseOverAction=[!SetOption Link29 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName29].jpg"][!Update]
MouseLeaveAction=[!SetOption Link29 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link30]
Meter=String
MeasureName=mName30
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink30 FollowPath][!Update]
MouseOverAction=[!SetOption Link30 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName30].jpg"][!Update]
MouseLeaveAction=[!SetOption Link30 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link31]
Meter=String
MeasureName=mName31
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink31 FollowPath][!Update]
MouseOverAction=[!SetOption Link31 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName31].jpg"][!Update]
MouseLeaveAction=[!SetOption Link31 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link32]
Meter=String
MeasureName=mName32
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink32 FollowPath][!Update]
MouseOverAction=[!SetOption Link32 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName32].jpg"][!Update]
MouseLeaveAction=[!SetOption Link32 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link33]
Meter=String
MeasureName=mName33
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink33 FollowPath][!Update]
MouseOverAction=[!SetOption Link33 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName33].jpg"][!Update]
MouseLeaveAction=[!SetOption Link33 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link34]
Meter=String
MeasureName=mName34
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink34 FollowPath][!Update]
MouseOverAction=[!SetOption Link34 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName34].jpg"][!Update]
MouseLeaveAction=[!SetOption Link34 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link35]
Meter=String
MeasureName=mName35
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink35 FollowPath][!Update]
MouseOverAction=[!SetOption Link35 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName35].jpg"][!Update]
MouseLeaveAction=[!SetOption Link35 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link36]
Meter=String
MeasureName=mName36
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink36 FollowPath][!Update]
MouseOverAction=[!SetOption Link36 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName36].jpg"][!Update]
MouseLeaveAction=[!SetOption Link36 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link37]
Meter=String
MeasureName=mName37
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink37 FollowPath][!Update]
MouseOverAction=[!SetOption Link37 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName37].jpg"][!Update]
MouseLeaveAction=[!SetOption Link37 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link38]
Meter=String
MeasureName=mName38
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink38 FollowPath][!Update]
MouseOverAction=[!SetOption Link38 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName38].jpg"][!Update]
MouseLeaveAction=[!SetOption Link38 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link39]
Meter=String
MeasureName=mName39
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink39 FollowPath][!Update]
MouseOverAction=[!SetOption Link39 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName39].jpg"][!Update]
MouseLeaveAction=[!SetOption Link39 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z

[Link40]
Meter=String
MeasureName=mName40
Group=PlexGroup
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
Text=%1
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink40 FollowPath][!Update]
MouseOverAction=[!SetOption Link40 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName40].jpg"][!Update]
MouseLeaveAction=[!SetOption Link40 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1z
Last edited by hyprdmg on September 10th, 2019, 2:19 am, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 8617
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Cutting off text outside of skin area (Not ClipString)

balala » September 9th, 2019, 3:44 pm

hyprdmg wrote:
September 9th, 2019, 2:01 pm
I am working on a skin based on GameView, and have a marquee feature, however, the text doesn't seem to cut off at the correct area.
The simplest solution is to set a width for the skin, adding a SkinWidth=#BarWidth# option to the [Rainmeter] section (obviously you can use any value you want). In this case:
Any meter or part of a meter positioned outside the defined boundaries will be truncated.
User avatar
hyprdmg
Posts: 37
Joined: May 23rd, 2010, 5:05 pm

Re: Cutting off text outside of skin area (Not ClipString)

hyprdmg » September 9th, 2019, 3:57 pm

Setting SkinWidth=#BarWidth# does what I'm looking for, for the text portion, but I am looking to still allow an image to appear on the screen with the mouse over.

I based the marquee effect from the post here, and there doesn't seem to be an issue with the text staying within the shape area. Would using a shape for the container potentially help in this case?
User avatar
balala
Rainmeter Sage
Posts: 8617
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Cutting off text outside of skin area (Not ClipString)

balala » September 9th, 2019, 5:13 pm

hyprdmg wrote:
September 9th, 2019, 3:57 pm
I based the marquee effect from the post here, and there doesn't seem to be an issue with the text staying within the shape area. Would using a shape for the container potentially help in this case?
Yes, it would, I'm just not sure you really need a Shape meter for this. I mean that a much simpler Image meter, with a solid color set (as otherwise you did) maybe is completely enough.
However there are a lot of meters / sections I can't follow in your code. For instance [StyleText1] is there but is never used. It should be a style section for existing meters, but it's never used. Same way are not used nor [StyleText2], [StyleText3] or [StyleText4].
User avatar
hyprdmg
Posts: 37
Joined: May 23rd, 2010, 5:05 pm

Re: Cutting off text outside of skin area (Not ClipString)

hyprdmg » September 9th, 2019, 6:03 pm

balala wrote:
September 9th, 2019, 5:13 pm
However there are a lot of meters / sections I can't follow in your code. For instance [StyleText1] is there but is never used. It should be a style section for existing meters, but it's never used. Same way are not used nor [StyleText2], [StyleText3] or [StyleText4].
I commented out the StyleText as it had no effect. I added a SolidColor to the MeterTextContainer2 and can see that the container does not go outside of the main area, however, I am not sure how to contain the text from Link2 within the container itself.

If I add Container=MeterTextContainer2 to Link2, everything still works as shown in my original post, but I no longer can see the SolidColor from MeterTextContainer2.

I'm using Link2 as the example as Link1 is for the dotdot which will not marquee.

Code: Select all

[Link2]
[Link2]
Meter=String
MeasureName=mName2
Group=PlexGroup
SolidColor=255,0,0,100
X=#marquee2#
Y=(#Spacing#+#TextSize#)r
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
Text=%1
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink2 FollowPath][!Update]
MouseOverAction=[!SetOption Link2 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName2].jpg"][!CommandMeasure MeasureActionTimer "Execute 2"][!Update]
MouseLeaveAction=[!SetOption Link2 FontColor #TextColour#][!SetOption View ImageName ""][!CommandMeasure MeasureActionTimer "Stop 2"][!SetVariable marquee2 15][!Update]
DynamicVariables=1
;[StyleText2]
;H=#LinkHeight#
;X=#marquee2#
;Antialias=1
;Container=MeterTextContainer2
;DynamicVariables=1
[MeterTextContainer2]
Meter=Image
SolidColor=0,0,255,50
X=#LeftMargin#
Y=0r
H=26
W=(#BarWidth#-#LeftMargin#)
User avatar
balala
Rainmeter Sage
Posts: 8617
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Cutting off text outside of skin area (Not ClipString)

balala » September 9th, 2019, 6:31 pm

hyprdmg wrote:
September 9th, 2019, 6:03 pm
I added a SolidColor to the MeterTextContainer2 and can see that the container does not go outside of the main area, however, I am not sure how to contain the text from Link2 within the container itself.
By adding a Container=MeterTextContainer2 option to the [Link2] meter. But this won't properly work, because [MeterTextContainer2] has a height of only 2 pixels (according to its H=2 option) and this means that you practically won't see anything from the content of the [Link2] meter. You probably should have to increase the height of the [MeterTextContainer2] meter.
hyprdmg wrote:
September 9th, 2019, 6:03 pm
If I add Container=MeterTextContainer2 to Link2, everything still works as shown in my original post, but I no longer can see the SolidColor from MeterTextContainer2.
A meter used as container is never visible. Check the Visibility here.
Otherwise, not, not everything works as initially. The [MeterContainer2] won't be visible, due to the above description, however, nor [Link2] will be, because:
  • The too tiny container doesn't let it to be visible.
  • Even if the container would be large enough, if a container is applied, the meter itself (which uses the container) is placed this time relatively to the container (read the Relativity on the same link as above). This means that [Link2] would be placed at the Y=(#Spacing#+#TextSize#) position, relatively to [MeterContainer2] (very important to understand the positioning of the content). r is ignored on positioning the first content (in this case [Link2]).
User avatar
balala
Rainmeter Sage
Posts: 8617
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Cutting off text outside of skin area (Not ClipString)

balala » September 9th, 2019, 7:03 pm

Never place the content and the container in a code one after the other and never position them relatively to each other. For instance:

Code: Select all

[MeterTextContainer1]
Meter=Image
SolidColor=0,0,0,100
X=#LeftMargin#
Y=#TopMargin#
H=26
W=30
DynamicVariables=1

[MeterTextContainer2]
Meter=Image
SolidColor=0,0,0,100
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
H=26
W=30

[MeterTextContainer3]
Meter=Image
SolidColor=0,0,0,100
X=#LeftMargin#
Y=(#Spacing#+#TextSize#)r
H=26
W=30

[Link1]
Meter=String
MeasureName=mName1
Group=PlexGroup
H=#LinkHeight#
X=0
Y=0
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
;Text=.....................................................................................
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink1 FollowPath][!Update]
MouseOverAction=[!SetOption Link1 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName1].jpg"][!Update]
MouseLeaveAction=[!SetOption Link1 FontColor #TextColour#][!SetOption View ImageName ""][!Update]
DynamicVariables=1
Container=MeterTextContainer1

;[StyleText1]
;X=#LeftMargin#
;Antialias=1
;Container=MeterTextContainer1
;DynamicVariables=1

[Link2]
Meter=String
MeasureName=mName2
Group=PlexGroup
SolidColor=255,0,0,100
X=0
Y=0
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
Text=%1
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink2 FollowPath][!Update]
MouseOverAction=[!SetOption Link2 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName2].jpg"][!CommandMeasure MeasureActionTimer "Execute 2"][!Update]
MouseLeaveAction=[!SetOption Link2 FontColor #TextColour#][!SetOption View ImageName ""][!CommandMeasure MeasureActionTimer "Stop 2"][!SetVariable marquee2 15][!Update]
DynamicVariables=1
Container=MeterTextContainer2

;[StyleText2]
;H=#LinkHeight#
;X=#marquee2#
;Antialias=1
;Container=MeterTextContainer2
;DynamicVariables=1

[Link3]
Meter=String
MeasureName=mName3
Group=PlexGroup
X=0
Y=0
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
Text=Valami: %1
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!CommandMeasure mLink3 FollowPath][!Update]
MouseOverAction=[!SetOption Link3 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName3].jpg"][!CommandMeasure MeasureActionTimer "Execute 3"][!Update]
MouseLeaveAction=[!SetOption Link3 FontColor #TextColour#][!CommandMeasure MeasureActionTimer "Stop 3"][!SetVariable marquee3 15][!SetOption View ImageName ""][!Update]
DynamicVariables=1
Container=MeterTextContainer3

;[StyleText3]
;X=#LeftMargin#
;Antialias=1
;Container=MeterTextContainer3
;DynamicVariables=1
Note that:
  • Instead of placing [Link1] to X=#LeftMargin# and Y=#TopMargin# (how initially it was), now it container ([MeterTextContainer1]) is placed into the same position.
  • [MeterTextContainer2] and [MeterTextContainer3] are placed relatively to the previous meter.
  • [Link1], [Link2] and [Link3] are placed all three to X=0 and Y=0, because they are positioned relatively to the appropriate container meter.
User avatar
hyprdmg
Posts: 37
Joined: May 23rd, 2010, 5:05 pm

Re: Cutting off text outside of skin area (Not ClipString)

hyprdmg » September 9th, 2019, 7:05 pm

balala wrote:
September 9th, 2019, 6:31 pm
...this won't properly work, because [MeterTextContainer2] has a height of only 2 pixels (according to its H=2 option) and this means that you practically won't see anything from the content of the [Link2] meter. You probably should have to increase the height of the [MeterTextContainer2] meter.
I actually noticed this shortly after posting and had fixed this (I believe I hit backspace one too many times).
balala wrote:
September 9th, 2019, 6:31 pm
A meter used as container is never visible. Check the Visibility here.
Otherwise, not, not everything works as initially. The [MeterContainer2] won't be visible, due to the above description, however, nor [Link2] will be, because:
  • The too tiny container doesn't let it to be visible.
  • Even if the container would be large enough, if a container is applied, the meter itself (which uses the container) is placed this time relatively to the container (read the Relativity on the same link as above). This means that [Link2] would be placed at the Y=(#Spacing#+#TextSize#) position, relatively to [MeterContainer2] (very important to understand the positioning of the content). r is ignored on positioning the first content (in this case [Link2]).
So I kind of understand what's going on here, and changed some things around.

Code: Select all

[MeasureActionTimer]
...
ActionList2=Wait #marqueeBeginWait# | Repeat Move2,#animationSpeed#,[MeasureMarquee2Offset:] | Wait #marqueeEndWait# | Reset2 | Wait #marqueeWait# | DoOver2
Reset2=[!SetVariable marquee2 15][!UpdateMeasure MeasureActionTimer][!UpdateMeter MeterTextContainer2][!Redraw]
Move2=[!SetVariable marquee2 "(#marquee2# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter MeterTextContainer2][!Redraw]
DoOver2=[!CommandMeasure MeasureActionTimer "Execute 2"]
...

[Link2]
Meter=String
MeasureName=mName2
Group=PlexGroup
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
Text=%1
AntiAlias=1
Hidden=1
Container=MeterTextContainer2
LeftMouseUpAction=[!CommandMeasure mLink2 FollowPath][!Update]
[MeterTextContainer2]
Meter=Image
SolidColor=0,0,0,255
X=#marquee2#
Y=(#Spacing#+#TextSize#)r
H=#LinkHeight#
W=(#BarWidth#-#LeftMargin#)
MouseOverAction=[!SetOption Link2 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName2].jpg"][!CommandMeasure MeasureActionTimer "Execute 2"][!Update]
MouseLeaveAction=[!SetOption Link2 FontColor #TextColour#][!SetOption View ImageName ""][!CommandMeasure MeasureActionTimer "Stop 2"][!SetVariable marquee2 15][!Update]
DynamicVariables=1
So now the text is cut off at the BarWidth, however, any text that is outside of the MeterTextContainer2 area, is now also cut off.

Image
User avatar
balala
Rainmeter Sage
Posts: 8617
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Cutting off text outside of skin area (Not ClipString)

balala » September 9th, 2019, 7:28 pm

hyprdmg wrote:
September 9th, 2019, 7:05 pm
So now the text is cut off at the BarWidth, however, any text that is outside of the MeterTextContainer2 area, is now also cut off.

Image
No, they are not. Based on the posted pic at least, they are not.
However whenever are you posting such codes, please post some usable snippets. Don't post just some very not complete parts. Please hel óp us to can help you.
User avatar
hyprdmg
Posts: 37
Joined: May 23rd, 2010, 5:05 pm

Re: Cutting off text outside of skin area (Not ClipString)

hyprdmg » September 9th, 2019, 7:37 pm

I guess saying that it's cut off isn't the correct term, however, the text that is outside of the MeterTextContainer2 W is no longer visible, even when it begins to marquee.

Code: Select all

[MeterTextContainer1]
Meter=Image
SolidColor=0,0,0,255
X=#marquee1#
Y=#TopMargin#
H=#LinkHeight#
W=(#BarWidth#-#LeftMargin#)
MouseOverAction=[!SetOption Link1 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName1].jpg"][!CommandMeasure MeasureActionTimer "Execute 1"][!Update]
MouseLeaveAction=[!SetOption Link1 FontColor #TextColour#][!SetOption View ImageName ""][!CommandMeasure MeasureActionTimer "Stop 1"][!SetVariable marquee1 15][!Update]
DynamicVariables=1

[MeterTextContainer2]
Meter=Image
SolidColor=0,0,0,255
X=#marquee2#
Y=(#Spacing#+#TextSize#)r
H=#LinkHeight#
W=(#BarWidth#-#LeftMargin#)
MouseOverAction=[!SetOption Link2 FontColor #MouseOverColour#][!SetOption View ImageName "#@#\Images\[mName2].jpg"][!CommandMeasure MeasureActionTimer "Execute 2"][!Update]
MouseLeaveAction=[!SetOption Link2 FontColor #TextColour#][!SetOption View ImageName ""][!CommandMeasure MeasureActionTimer "Stop 2"][!SetVariable marquee2 15][!Update]
DynamicVariables=1

;*****LINKS*****


[Link1]
Meter=String
MeasureName=mName1
Group=PlexGroup
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
;Text=.....................................................................................
Text=%1
AntiAlias=1
Hidden=1
Container=MeterTextContainer1
LeftMouseUpAction=[!CommandMeasure mLink1 FollowPath][!Update]

[Link2]
Meter=String
MeasureName=mName2
Group=PlexGroup
FontColor=#TextColour#
FontSize=#TextSize#
FontFace=#Font#
Text=%1
AntiAlias=1
Hidden=1
Container=MeterTextContainer2
LeftMouseUpAction=[!CommandMeasure mLink2 FollowPath][!Update]