[REBOL] [VID][layout] Changing origin and space
From: atruter::labyrinth::net::au at: 20-Mar-2004 21:48
My crude attempts to set a "global" origin and space in VID resulted in
the following code:
code: second first next find third system/words [layout:]
change find code 8x8 20x20 ; space
change first find/only code [20x20][100x100] ; origin
but there must be a more elegant solution than this!?
Which got me to thinking about how I typically use layout:
view/new/options/title center-face layout [...] compose [parent
(main-out)] title
and the fact that, for me at least, most of the complexity in these mezz
functions ('view 'center-face 'layout) is not needed. I checked the VID
source to see which layout refinements are used and only came up with
three hits:
PANEL -> layout/parent/size/styles
LIST -> layout/parent/origin/styles
TEXT-LIST -> layout/size
which lets me write a stream-lined version of layout, but leads to the
question of how do I replace 'layout in the 'system/view/VID context with
my version? I've started extending the approach adopted above (for 'origin
/ 'space) but like before wonder if there is an easier way. Comments?
Regards,
Ashley