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

[REBOL] Re: Listing of Names of Faces

From: brett::codeconscious::com at: 30-Sep-2002 8:06

> << When you create a complex layout with inner faces, how is it possible
> get > the structure of it.. with names of faces ? >> > > I'm not sure I understand exactly what you're after. You can iterate over > the faces in a pane, but any words that reference those faces are not > actually part of the layout structure, so you won't see them there.
Actually they are - well at least for the variables variable set during LAYOUT. See the VAR facet for a given face. It will record the variable name (set-word! used during layout) if one exists for a face. There is a known problem for PANEL style though. view layout [ myface: button [print face/var] ] How useful this is, I'm not sure. In terms of getting the structure of it, it is necessary as Gregg says, to iterate through it. Brett.