Hi,

Anton Rolls came up with this for a RebGUI question I had

oneset: context [field: none]
twoset: context [field: none]

; Anton's magic to set-word! trick
view layout compose [
=C2=A0 =C2=A0 (to set-word! in oneset 'field) field
=C2=A0 =C2=A0 (to set-word! in twoset 'field) field
=C2=A0 =C2=A0 btn "Show the fields" [alert oneset/field/text =C2=A0alert tw=
oset/field/text]
]
On Tuesday 24 July 2007 15:58, Christian Ensel wrote:
> Hi Alessandro,
>
> > Can I create a Rebol/View form, separating the contexts inside?
>
> Yes, you can do so, although it's somewhat cumbersome:
>
> ------------------------------------------------------------------------
> rebol []
>
> foo: context [field: none]
> bar: context [field: none]
>
> output: does [print ["foo/field:" foo/field/text tab "bar/field:"
> bar/field/text]]
>
> view layout probe compose [
>     across
>     label "foo/field:"
>     (bind [field:] in foo 'self) field [output]
>     return
>     label "bar/field:"
>     (bind [field:] in bar 'self) field [output]
> ]
> ------------------------------------------------------------------------
>
> HTH,
>
> Christian
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to