This only seems to work if the meter listed directly above in the ini file is visible.

If I'm creating a skin where one or more meters may conditionally be hidden, then the meter listed directly below a hidden meter will position itself as if y=0.

In the simple example below, there are two STRING meters named MTRTest01 and MTRTest02. Every few seconds, one is visible and the other is hidden. The next meter shows the time and below that there's just a simple counter. Notice that when the meter directly above MTRTime is hidden, then the Y value for MTRTime goes to zero.

Does anyone know a way around this? Am I missing something? Is there any way to make sure that a meter is positioned relative to the last VISIBLE meter?

I hope this makes sense.

Code: Select all

```
; Looking for solution to relative X problem.
[Rainmeter]
Author=Formidable
AppVersion=1.0
Update=1000
[Variables]
Color1=255, 255, 255, 255
ColorPlaceHolder=0,0,0,0
FontText=Ariel
FontHeightText=35
AntiAlias=1
MarginLeft=20
;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
; Measures
;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[MSRTimer]
Measure=Calc
Formula=Counter%10
[MSRTimer01]
Measure=Calc
Formula=Counter%10
IfBelowAction=!RainmeterHideMeter MTRTest01
IfBelowValue=5
IfAboveAction=!RainmeterShowMeter MTRTest01
IfAboveValue=5
[MSRTimer02]
Measure=Calc
Formula=Counter%10
IfBelowAction=!RainmeterShowMeter MTRTest02
IfBelowValue=5
IfAboveAction=!RainmeterHideMeter MTRTest02
IfAboveValue=5
[MSRTime]
Measure=Time
Format="%I:%M"
;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
; Meters
;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[MTRTest01]
Meter=STRING
Text=TEST01
x=0
y=0
StringStyle=NORMAL
StringAlign=LEFT
FontColor=#Color1#
FontSize=#FontHeightText#
FontFace=#FontText#
AntiAlias=1
[MTRTest02]
Meter=STRING
Text=TEST02
x=0
y=0
StringStyle=NORMAL
StringAlign=LEFT
FontColor=#Color1#
FontSize=#FontHeightText#
FontFace=#FontText#
AntiAlias=1
; ------------------------------
; If the following meter is included as
; a placeholder, then MTRTime will appear
; at the appropriate place. The placeholder
; Meter is entirely invisible.
; Using placeholders gets cumbersome, howerver
; if there's more than one meter in a column
; that will be shown/hidden.
; [MTRPlaceHolder]
; Meter=STRING
; Text=XX
; x=0
; y=0
; StringStyle=NORMAL
; StringAlign=LEFT
; FontColor=0,0,0,0
; FontSize=#FontHeightText#
; FontFace=#FontText#
; AntiAlias=1
; -------------------------------
[MTRTime]
MeasureName=MSRTime
Meter=STRING
x=0
y=R
StringStyle=NORMAL
StringAlign=LEFT
FontColor=#Color1#
FontSize=#FontHeightText#
FontFace=#FontText#
AntiAlias=1
[MTRCounter]
Meter=STRING
MeasureName=MSRTimer
Prefix=Count:
x=0
y=R
StringStyle=NORMAL
StringAlign=LEFT
FontColor=#Color1#
FontSize=#FontHeightText#
FontFace=#FontText#
AntiAlias=1
```