Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Layout

From: rotenca:telvia:it at: 21-Sep-2002 16:28

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