[ALLY] Re: Wiring non-vid faces and vid faces together
[1/5] from: carl::rebol::com at: 8-Apr-2001 19:28
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 dynamic layout. We often write "resize" functions that do just that, using what's already in the face pane. -Carl
[2/5] from: brett:codeconscious at: 8-Apr-2001 21:20
Hi, This may be a little ambitious given my amount of experience writing view styles, etc, but I like to understand what is going on... I would like to be able to create a view face that is a mix of directly created faces and a VID created face. So far I don't think I've come across something like this. Applications appear to be either all VID or all non-VID, but I could have easily missed a lot! The question is, Is there something special to do to wire VID and non-VID faces together. For example in VID, focus automatically moves from field to field when the enter or tab key is pressed. Why would I do this? Because I want to leverage off the very useful code contained in VID but with some specific non-vid faces to produce a new type of VID style which has a dynamic appearance. Fantasy? Thanks Brett. --- http://www.codeconscious.com
[3/5] from: carl:rebol at: 9-Apr-2001 7:58
Yes! Worth mentioning. Thanks Allen.
[4/5] from: brett:codeconscious at: 9-Apr-2001 21:11
Thanks Carl and Allen.
[5/5] 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.
<<quoted lines omitted: 4>>> 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
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted