[REBOL] Re: view problem - updating windows
From: carl:cybercraft at: 27-Apr-2001 22:02
On 27-Apr-01, Renaud wrote:
> you can use a different (simpler) syntax to achive the behavior you
> want. se below te a2 definition, wich is a shorter way to set the
> same feel facet.
Thanks Renaud, that's quite a bit nicer. I'd never really got my head
around how 'feel works and have just pruned back other's code as much
as possible while still keeping its functionality. Looking forward
to the full View docs...
> rebol []
> n1: 0
> n2: 0
> view layout [
> a1: text to-string n1 100
> with [
> rate: 1 feel: make feel [
> engage: [
> n1: n1 + 1
> a1/text: to-string n1 show a1
> ]
> ]
> ]
> a2: text to-string n2 100 rate 10 feel [
> engage: [
> n2: n2 + 1
> a2/text: to-string n2 show a2
> ]
> ]
> button "Quit" [unview]
> ]
--
Carl Read
[carl--cybercraft--co--nz]