Even if you most probably are right, this makes not too much sense. If DynamicWindowSize is set to 0, the size of the skin shouldn't have to vary. But it seems it does.First, sorry for the delay in responding, but don't worry, I didn't forget to do so. Secondly, for the height to not vary, it's not enough to explicitly set DynamicWindowSize=0, but, like said before, you also need to have a non zero SkinHeight (added a half transparent skin background for things to be more obvious):
Still saying it doesn't make sense. Logically would be in my opinion, that if DynamicWindowSize is set to 0 and no SkinWidth and SkinHeight are defined, the skin get a size related to position and size of meters on the refresh / first update. If with DynamicWindowSize=0 the size of the skin is still adjusted in some circumstances, why to have the DynamicWidndowSize option set? It seems useless to can set it to 0.In other words, DynamicWindowSize and SkinWidth / SkinHeight work together. The idea is that it's pointless to explicitly restrict a skin dimension via the former option if you don't specify the value that dimension should be restricted to or if that value is 0 in the latter options, and in those cases the said dimension will be 'restricted' to either the initial or the last extent of the skin (which, given that the meters' sizes are dynamic, will also be dynamic across changes).
Another thing that might not be that obvious is that in the manual, it's only said what happens if DynamicWindowSize is 1, it's not in any way said that when it's 0 the dimensions will be restricted to some value - just that when it's 0 the window size won't be [automatically] adjusted on each update to fit the meters. In your code however, you indirectly adjust the window size [manually] via bangs to update the meters and redraw the skin.
On the other side, if DynamicWindowSize=1 is set and I define a size for the skin, through a SkinWidth and a SkinHeight, the size of the skin doesn1t vary. It is kept to the values set by the SkinWidth and SkinHeight options.
So even if I see you are right, this makes not too much sense in my opinion.
Statistics: Posted by balala — Yesterday, 8:31 pm