camillo

one of the problem that we have is that the refactoring stopped in the middle
because displayProgressFrom: minVal to: maxVal during: workBlock now works with 
job and this is nice
but job requires but all the user of displayProgressFrom: minVal to: maxVal 
during: workBlock 
are using bar current: aNumber and not a value between 0 and 1.0.

So this means that we will a lot of broken code.
Am I correct?

Stef

displayProgressFrom: minVal to: maxVal during: workBlock 
        "Display this string as a caption over a progress bar while workBlock 
is evaluated.

'Now here''s some Real Progress'
        displayProgressFrom: 0 to: 10
        during: [:bar |
        1 to: 10 do: [:x | bar value: x.
                        (Delay forMilliseconds: 500) wait]].
"
        ^ UIManager default 
                displayProgress: self 
                from: minVal 
                to: maxVal 
                during: workBlock

displayProgress: titleString from: minVal to: maxVal during: workBlock
        "SystemProgressMorph show: titleString from: minVal to:  during: "

        ^ workBlock asJob
                        title: titleString;
                        min: minVal;
                        max: maxVal;
                        run.

Reply via email to