Robert -

the help in the ref-words has a pretty good example on this under the
View -> Show keyword....

    out: layout [
        h1 "Show Example"
        t1: text "Text 1"
        t2: text "Text 2"
    ]

    view/new out
    wait 1
    remove find out/pane t2
    show out
    wait 1
    remove find out/pane t1
    show out
    wait 1
    append out/pane t2
    show out
    wait 1
    unview

I'd expect you could append out/pane with something if you want to add an
item.

- Porter

----- Original Message -----
From: "Robert M. Muench" <[EMAIL PROTECTED]>
To: "Rebollist" <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 1:30 PM
Subject: [REBOL] Dynamically adding boxes to layout


> Hi, I have to followig problem: I'm doing some calculation that results in
some
> object positions. Now I want to draw boxes with these calculcated
positions. The
> number of boxes is not known until run-time.
>
> It's easy to do it statically:
>
> view layout [
> box 25x25
> box 10x10
> ]
>
> Ok, but how do I add further boxes at run-time? Robert
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
>

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to