dfghrngsdkg wrote: ↑October 3rd, 2019, 12:20 pm
Hello,
Thank you for also looking into this matter. Yes, this is it!
When comparing yours and mine, I found some parts I'd like to have clarified for a better understanding of my doings.
1. About the "[!UpdateMeter *]" :
If I add this part then I do not need to create "Groups" as this command would update
every involved "MeterTotalDrive" by using " * " - am I right? Or does it update
every other Meter regardless?
Yes, the asterisk means "All meters". You need groups to be able to control all meters related to specific drives using a single bang action. A !Redraw bang without !UpdateMeter bang is useless; you need to update before you redraw.
dfghrngsdkg wrote:
2. I've noticed that you had placed " [MeterStyleTransfer] " inbetween Drive1/2 and Drive3/4/5 which puzzles me a bit.
{image removed}
My guess is: It is because to create the needed order: Drive1/2 -> Header -> USB_Drives (3/4/5) as a reference to get the spacing and positioning to work when using Y=0R. Like: "What you code is what you get (to see)"? I've never seen such approach as I am not familiar with - or is there no meaning/reason behind it at all and it just looks like as it is?
I placed it there initially because you had it's vertical position relative to the previous meter; meters will be drawn in the order they appear in the code. Later I changed it to a static position, so now it could be anywhere in the code.
dfghrngsdkg wrote:
3. Positioning/ Spacing: Yes, I tried "Padding" but couldn't get the desired result, even it was already there, right in front of me. One of my thoughts for example: "Why should I add a "R" to C:'s "Y=0" if C: is already on top?" and by doing so ignoring that "R" possibly serves as a "general marker" to get the rest to follow.
Since only the USB included meters needed to be at a set distance from the [Transfers] section and each other, I set the vertical position of the first meter in each USB include to Y=0R so they would not change any placement when they are hidden (height equals zero). When any of them are hidden, the next meter will be placed at the same vertical position. In order to get separation between the USB include, I recreated a [Spacer] section at the end of all USB includes to make all of them approximately the same size as Drive1 and Drive2 includes (~65 pixels); you can change the H value to move them closer together or further apart vertically.
dfghrngsdkg wrote:In this screenshot below I've (tried) to summarized your work and a few questions came up:
{image removed}
A) If all USB.inc files have no "Padding=" coded into it, how can they maintain the space in between (lower orange-dotted line) and especially if "Y=0R" is set in all .inc files? To my understanding an "Y=0R" would cause that all Drives simultaneously anchor right below the Header (I had run into something like this previously).
No, Y=0R will place the meter containing that code directly below the preceding meter. If the preceding meter is hidden, then the meter with Y=0R will appear exactly where the previous meter would have been. Padding is completely different from Relative positioning. Padding is used to fine-tune spacing "around" meters (Padding=Left Pixels,Top Pixels, Right Pixels, Bottom Pixels) while R & r are used to position meters relative to other meters.
dfghrngsdkg wrote:B) If I set both, D: and the Header to "Y=0R" would they maintain their current position too? If not, what I have to do?
They may, but because they do not have a [Spacer] section, which is used to create a vertical gap at the bottom of those includes, you may need to add that to them. However, they are static meters, that will never increase or decrease in vertical size, other than if the font size is changed, which would require additional changes, so why place them relative to anything? I set the Y values to static numbers to give me the desired spacing.
dfghrngsdkg wrote:C) If I include a "show/hide" command into D: with both, D: and the Header are set to :Y=0R", would the Header incl. the USB's move up alltogether orderly to fill the then blank space if D: is detached or would it create a clusterf..k?
Not quite the way it is coded, because I used padding in the Header meter. I suppose you could set those Y=0R, and replace the padding with a new [Spacer] section below the [Transfers] section to maintain vertical spacing.
Try it and see what happens, then make small changes, one-at-a-time until you get the desired spacing.