Hi Alessandro,

the problem is that DO in VID dialect is executed once, when LAYOUT parses
the dialect.
Try following code in console:

>> view layout [do [val: .1] progress with [data: val] do [val: .7] progress
with [data: val]]

As you can see, DO block is somehow "static". Now try this code:

>> view layout [progress rate 0 feel [engage: func [face action
event][face/data: (third now/time/precise) // 1 show face]]]

That's probably what you want.

Bye, Rebolek




On 4/26/06, Alessandro Manotti <[EMAIL PROTECTED]> wrote:
> >
> >
> > Dear all, I'm a newbe in Rebol.
> >
> > I'm creating a Rebol application, and I need to display a progress bar
> > (I'm using RebGUI, but I think the concept is the same using classic
> > view) without user interaction.
> > I hope the following example will better explain what I need (it is
> > not the real code I'm programming, but an easy code I create just
> > represent my real problem):
> >
> > repeat counter 10 [
> >
> >     display compose/deep/only "PROGRESS" [
> >         pro: progress
> >
> >         do [
> >             incr: 0
> >             repeat newCounter 10 [
> >                pro/data: incr
> >                incr: incr + 0.1
> >             ]
> >        ]
> >
> >       unview
> > ]
> >
> >
> > Well, the problem is I don't see any progress in the bar, since the
> > form is not shown until the do [ ... ] loop does not finish!
> >
> > Can you help me?
> >
> > Thank you!
> >
> > --Alessandro
> > --
> > To unsubscribe from the list, just send an email to
> > lists at rebol.com with unsubscribe as the subject.
> >
> >
>
>
> --
> [EMAIL PROTECTED]
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
>


--
/
Boleslav Brezovsky
http://krutek.info
\

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to