User Interface Controls > Common Properties > Layout > Types > Progressbar |
A progressBar control is used to place a progress bar in a rollout.
The default alignment of progressBar items is #left .
The initial progress percentage value (0 - 100). The default value is 0. This is an Integer value.
The color of the progress bar. The default color value is [30,10,190].
Specifies whether the progress bar should fill from left to right ( orient:#horizontal ) or bottom to top ( orient:#vertical ). Default value is #horizontal .
The progress bar complete percentage (0 - 100).
The color of the progress bar.
The orientation of the progress bar fill: #horizontal - left to right; #vertical - bottom to top.
The .value property requires an integer between 0 and 100. When calculating a percentage from a current value and a total value, the order the values are multiplied and divided does matter!
Dividing them first and then multiplying by 100.0 would always return 0.0 because an Integer divided by an Integer yields an Integer, and since the result is less than zero, it is rounded down to zero:
When starting with the Float value 100.0, the final result is implicitly converted to a Float because a Float multiplied by an Integer returns a Float, and a Float divided by an Integer still returns a Float. The Float value is then converted internally to Integer when assigned to the .value property.
Called when user clicks on the progress bar. The <arg> argument will contain the percentage value at the clicked point.
This event handler makes the progressbar an interactive UI control. See How To ... Enhance the Morpher Modifier With Floating Controls for an example of progressbar usage as slider replacement.
Called when the user right-clicks the Progressbar control.
Available in 3ds Max 2010 and higher.