Showing progress in seaBreeze
Some days ago Roland encountered a problem with seaBreeze where we wanted to perform a timely task after the user pressed a button. During this time the user simply had to wait and he wanted to present a progressbar to the user. As the goal of seaBreeze is to provide easy solutions to the user I wanted to make such a progress bar as simple to use as it is in VisualWorks. In VisualWorks you can do:
Notice show:'we are working on it' while:[we doALot].
The implementation for seaBreeze looks exactly like that, just with a different class:
SBAjaxProgress show:'we are working on it' while: [we doALot].
This will show a window that only tells the user that something is being done. If you know how much you have to do and you can show a progress bar, you can call:
SBAjaxProgress showProgress: 'counting...' complete: 100 while:[
1 to: 100 do:[:i |
we doABit.
IncrementNotification raiseSignal.
]
]
That’s all there is to do.
Karsten