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

[ALLY] Re: Wiring non-vid faces and vid faces together

From: allenk:powerup:au at: 10-Apr-2001 8:50

----- Original Message ----- From: "Carl Sassenrath" <[carl--rebol--com]> To: <[ally-list--rebol--com]> Sent: Monday, April 09, 2001 12:28 PM Subject: [ALLY] Re: Wiring non-vid faces and vid faces together
> Brett, > > A good question. > > Yes, VID was created to allow this kind of mixing, and we often do it in > larger applications. > > The VID face definition is a superset of the View face definition. So, if > you mix the two, it's best to use VID faces to start, because they have > within them the View face fields as well. > > In fact, VID face should hold nearly all the info you need for doing
> layout. We often write "resize" functions that do just that, using what's > already in the face pane. > > -Carl
Another approach when you are thinking of mixing the two but want to reuse as much functionality in the style as possible, is to utilise STYLIZE and create a new style. Using 'with within a style you can get as low level and FACE- like as you want, but you still have all the inherited benefits of the style. Cheers, Allen K