Hi,

> Is it possible to add new face into a layout which is already displayed ?
>
> The following lines (from  Philippe Oehler) is a good example of dynamically
> generating layout in one go, but it is done
> before the block is actually transformed as a layout. I want to do it after
> the block is drawn on the screen.
> Is it possible ?

Yes. Attention to line break.

view layout [
    size 200x400
    button "add button" [
        for e 1 10 1 [
            insert tail face/parent-face/pane make-face/offset/spec 'button
20x30 + (0x20 * e) [
                text: join "button-" e
            ]
        ]
        show face/parent-face
    ]
]

---
Ciao
Romano



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

Reply via email to