Lively Kernel canvas
// this script is evaluated on world load
Documentation:Widgets40
ProgressBarMorph30
progress=$morph("ProgressBar");vari=0;varmax=10;functionshowSomeProgress(){if(i>max)return;i++;progress.setValue(i/max)showSomeProgress.delay(1)}showSomeProgress() max)\n\t\treturn;\n\ti++;\n\tprogress.setValue(i / max)\n\tshowSomeProgress.delay(1)\n}\n\nshowSomeProgress()\n\n"]]>14 max)\n\t\treturn;\n\ti++;\n\tprogress.setValue(i / max)\n\tshowSomeProgress.delay(1)\n}\n\nshowSomeProgress()\n\n"]]>
TheProgressBarMorphisasimpleimplemenationofaProgressBarthatdoesnotuseanymodelcode161
bar=newProgressBarMorph(newRectangle(600,100,300,30));bar.openInWorld()bar.name='ProgressBar2'3
Wikicontroltruetrue
null
null0.3
null31