It is currently December 15th, 2019, 6:29 am

Container bug

Report bugs with the Rainmeter application and suggest features.
User avatar
Jeff
Posts: 94
Joined: September 3rd, 2018, 11:18 am

Re: Container bug

Jeff » September 21st, 2019, 4:00 pm

All the fixes that were reported in the alpha work for me (Win7 SP1), this anomaly is something else I found related to the skin
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3645
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Container bug

eclectic-tech » September 21st, 2019, 9:02 pm

Jeff wrote:
September 21st, 2019, 4:00 pm
All the fixes that were reported in the alpha work for me (Win7 SP1), this anomaly is something else I found related to the skin
There is nothing wrong with the beta relative positioning when using a container. I have tested it in Windows 10 with the code below and it behaves as expected. The original author needs to modify his code to reposition every 7th square at X=1, then the relative positioning in the style place all the squares properly.

Note, I also positioned the squares starting at X=1 and Y=1 to allow for the default StrokeWidth of 1 when not specified.

Blocks.ini

Code: Select all

[Rainmeter]

;----------------------------------
[Variables]

BlockSize=50

;----------------------------------------------------
; Styles
;----------------------------------------------------

[ImageStyle]
W=#BlockSize#
H=#BlockSize#
X=R
Y=r
SolidColor=(5*#CURRENTSECTION#),(5*#CURRENTSECTION#),(5*#CURRENTSECTION#)
Container=Background
Group=Items

[BackgroundStyle]
X=1
Y=1
LeftMouseUpAction=[!ToggleMeter Background2][!UpdateMeter *][!Redraw]
UpdateDivider=-1

;----------------------------------------------------
; Background Meters
;----------------------------------------------------

[Background]
Meter=Shape
MeterStyle=BackgroundStyle
Shape=Rectangle 0,0,(#BlockSize#*6),(#BlockSize#*8),12

[Background2]
Meter=Shape
MeterStyle=BackgroundStyle
Shape=Rectangle 0,0,(#BlockSize#*6),(#BlockSize#*8),12 | Fill Color 0,0,0,1

;----------------------------------------------------
; Item Names
;----------------------------------------------------

[1]
Meter=Image
MeterStyle=ImageStyle
X=1
Y=1

[2]
Meter=Image
MeterStyle=ImageStyle
[3]

Meter=Image
MeterStyle=ImageStyle

[4]
Meter=Image
MeterStyle=ImageStyle

[5]
Meter=Image
MeterStyle=ImageStyle

[6]
Meter=Image
MeterStyle=ImageStyle

[7]
Meter=Image
MeterStyle=ImageStyle
X=1
Y=R

[8]
Meter=Image
MeterStyle=ImageStyle

[9]
Meter=Image
MeterStyle=ImageStyle

[10]
Meter=Image
MeterStyle=ImageStyle

[11]
Meter=Image
MeterStyle=ImageStyle

[12]
Meter=Image
MeterStyle=ImageStyle

[13]
Meter=Image
MeterStyle=ImageStyle
X=1
Y=R

[14]
Meter=Image
MeterStyle=ImageStyle

[15]
Meter=Image
MeterStyle=ImageStyle

[16]
Meter=Image
MeterStyle=ImageStyle

[17]
Meter=Image
MeterStyle=ImageStyle

[18]
Meter=Image
MeterStyle=ImageStyle

[19]
Meter=Image
MeterStyle=ImageStyle
X=1
Y=R

[20]
Meter=Image
MeterStyle=ImageStyle

[21]
Meter=Image
MeterStyle=ImageStyle

[22]
Meter=Image
MeterStyle=ImageStyle

[23]
Meter=Image
MeterStyle=ImageStyle

[24]
Meter=Image
MeterStyle=ImageStyle

[25]
Meter=Image
MeterStyle=ImageStyle
X=1
Y=R

[26]
Meter=Image
MeterStyle=ImageStyle

[27]
Meter=Image
MeterStyle=ImageStyle

[28]
Meter=Image
MeterStyle=ImageStyle

[29]
Meter=Image
MeterStyle=ImageStyle

[30]
Meter=Image
MeterStyle=ImageStyle

[31]
Meter=Image
MeterStyle=ImageStyle
X=1
Y=R

[32]
Meter=Image
MeterStyle=ImageStyle

[33]
Meter=Image
MeterStyle=ImageStyle

[34]
Meter=Image
MeterStyle=ImageStyle

[35]
Meter=Image
MeterStyle=ImageStyle

[36]
Meter=Image
MeterStyle=ImageStyle

[37]
Meter=Image
MeterStyle=ImageStyle
X=1
Y=R

[38]
Meter=Image
MeterStyle=ImageStyle

[39]
Meter=Image
MeterStyle=ImageStyle

[40]
Meter=Image
MeterStyle=ImageStyle

[41]
Meter=Image
MeterStyle=ImageStyle

[42]
Meter=Image
MeterStyle=ImageStyle

[43]
Meter=Image
MeterStyle=ImageStyle
X=1
Y=R

[44]
Meter=Image
MeterStyle=ImageStyle

[45]
Meter=Image
MeterStyle=ImageStyle

[46]
Meter=Image
MeterStyle=ImageStyle

[47]
Meter=Image
MeterStyle=ImageStyle

[48]
Meter=Image
MeterStyle=ImageStyle

block.png
You do not have the required permissions to view the files attached to this post.