Progress bar value

Is there a way to make the progress bar value read as a float instead of an integer? I have had no luck so far.

Thanks

Hi, is this perspective ?

If so, this seems to work on my end...
The decimal separator might be different for you.

This is in vision. I apologize for any confusion.

Not with the progress bar, but you can use the level indicator instead.
Set it's orientation to left right and the value format to #.0
Adjust colors etc.

2 Likes

It can be done by using the property change event handler to directly set the string property when the progress bar's value property changes.

Example:

# Written for the progress bar's propertyChange event handler
# Any time the progress bar's value changes... 
if event.propertyName == 'value':
	
	# Using a respective min/max of 0/1000
	# Convert the value to a string that represents a 0.0 to 100.0 percentage
	# ...and assign it to the string property
	event.source.string = unicode(event.newValue * .1) + '%'

Result:
image

2 Likes