[REBOL] Re: [view]
From: nitsch-lists:netcologne at: 8-Jan-2004 7:34
Am Mittwoch 07 Januar 2004 20:43 schrieb Maxim Olivier-Adlhoch:
> an advanced/obscure question!
> Does anyone know if manually setting the parent-face attributer of a face
> object is cause for concern?
> In my current algorythm, some faces are generated manually and are linked
> by parsing data. But some of them need to create face in panes and these
> need to use the parent-face values in order to build-up some draw effects
> BEFORE the faces are shown... (lines in between faces added to backdrop).
should not make problems. because 'panel does it too:
and 'layout does not reset it. i guess 'show overvrites it when building tree.
(btw trick in panel: if you set /parent-face in init, this is the really used
face. so a style can replace itself with another face while layouting).
!>> probe get in get-style 'panel 'facets
[with [feel: none append init [parent-face: layout/parent/size/styles second
:action self size copy self/styles]]]
> So far I have seen no problems, but I just wanted to be sure...
> THANKS for any tips
> "You can either be part of the problem or part of the solution, but in the
> end, being part of the problem is much more fun."