Using a Section Variable To Show a Value in a !SetOption "Value" (3 little ones)
Posted: July 23rd, 2021, 4:33 am
Hello, I have a Parent Measure:
And a !SetOption bang setting the Value of a Text Value:
The Problem is actually three different end Values for the text string.
Using the above two i get "Volume: 0.15 MB". I have to put the "MB" in there since AutoScale isn't supplying the suffix as it seems to say in the manual as 'should happen automatically'.
Then I try this way;
Used with this line format:
The output then looks like this: "Volume: 15.0 kB". The issue with this form is that when !SetOption is used again: MouseLeaveAction=[!SetOption "MeterUnderText" "Text" ""][!Update] the %1 value persists without the 'Volume" string before it. I have no idea why, but that happens...
Ok I will skip the third form since it is moot.
Ideally, on mouse over the Recycle Volume in scaled 2 decimal precision reads correctly, and completely is gone after mouse leave.
Here is the whole skin: I hope I packed it right...
EDIT: I forgot the reason for all of this to start with. Using the "[MeasureName]" was producing an unscaled long integer and no suffix.
Code: Select all
[MeasureBinSize]
Measure=RecycleManager
RecycleType=Size
DynamicVariables=1
Code: Select all
MouseOverAction=[!SetOption "MeterUnderText" "Text" "Volume: [MeasureBinSize:/100000,2] MB"][!Update]
MouseLeaveAction=[!SetOption "MeterUnderText" "Text" ""][!Update]
Using the above two i get "Volume: 0.15 MB". I have to put the "MB" in there since AutoScale isn't supplying the suffix as it seems to say in the manual as 'should happen automatically'.
Then I try this way;
Code: Select all
[MeterUnderText]
Meter=String
MeasureName=MeasureBinSize
AutoScale=2k
...
Text=" "
Code: Select all
MouseOverAction=[!SetOption "MeterUnderText" "Text" "Volume: %1b"][!Update]
EDIT: I forgot the reason for all this to start with. Using the section variable in simple form "[SectionMeasure]" produces a long integer of 5 numbers and no decimal value, but it also does not add the quantifier, MB, GB, kB, etc are not showing.
Ok I will skip the third form since it is moot.
Ideally, on mouse over the Recycle Volume in scaled 2 decimal precision reads correctly, and completely is gone after mouse leave.
Here is the whole skin: I hope I packed it right...
EDIT: I forgot the reason for all of this to start with. Using the "[MeasureName]" was producing an unscaled long integer and no suffix.