It is currently April 24th, 2024, 12:09 pm

[Feature Request] ClipString3

Report bugs with the Rainmeter application and suggest features.
User avatar
LittleOne
Posts: 48
Joined: March 24th, 2015, 4:03 am

[Feature Request] ClipString3

Post by LittleOne »

Clip the string before on #CRLF#
the problem is like this example code

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
Var1=This is How long
Var2=Some very very long text that never can be fitted in one row because of the width is not enough
Var3=Some very very l...
SP1=-------------
SP2=-------------------------------
[MeterLabel]
Meter=String
Text=Info1#CRLF##SP1##CRLF#Info2#CRLF##SP1##CRLF#Info3#CRLF##SP1##CRLF#info4
SolidColor=255,255,255,255
[MeterInfo]
Meter=String
Text=#Var1##CRLF##SP2##CRLF##Var1##CRLF##SP2##CRLF##Var2##CRLF##SP2##CRLF##Var1#
SolidColor=255,255,255,255
ClipString=2
ClipStringW=150
X=50
so the result will be like this code

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
Var1=This is How long
Var2=Some very very long text that never can be fitted in one row because of the width is not enough
Var3=Some very very l...
SP1=-------------
SP2=-------------------------------
[MeterLabel]
Meter=String
Text=Info1#CRLF##SP1##CRLF#Info2#CRLF##SP1##CRLF#Info3#CRLF##SP1##CRLF#info4
SolidColor=255,255,255,255
[MeterInfo]
Meter=String
Text=#Var1##CRLF##SP2##CRLF##Var1##CRLF##SP2##CRLF##Var3##CRLF##SP2##CRLF##Var1#
SolidColor=255,255,255,255
ClipString=2
ClipStringW=150
X=50
load both skin to see my point, im bad at explaining thing on english