You can test it with the Dialogs example, just add a
Code: Select all
moai.Set("prgbar", "max", 1000)
Code: Select all
For Local k = 0 To moai.Get("prgbar", "max")
Code: Select all
max="1000"
Also setting the "hide" attribute to true on a progressbar definition, only hides the bar not the scale-object!
If I set it at run-time, both were hidden!
Well, this can be easily work-around by putting the progressbar in a own group and hide the group instead of the progressbar;)
btw, Andreas could you add a callback function, so one could show a custom string in the progress bar?