Adding Multiple Styles
[1/3] from: info::id-net::ch at: 11-Dec-2002 10:52
I read a part of a article on rebolforces, signed by Carl, that you can have
more than one style. But It seems that it doesn't work..
I'm using this code to make it but maybe I'm wrong..
lo: layout
[
styles my-style1
styles my-style2
etc.
etc.
]
The Faces declared in the second style aren't available.. Where is the error
? Is there a second option to adding all my components in the first style
and declared
only a unique style ?
Philippe
[2/3] from: anton:lexicon at: 11-Dec-2002 22:14
It would be good to see more of your code.
Where are you getting your styles from ?
Check that you are stylizing correctly.
mon-style: stylize [
bouton: button "bonjour"
]
view layout [
styles mon-style
bouton
]
Notice the format in the stylize block -
a set-word (bouton:) followed by a style word and
its facet details.
In older versions of rebol, stylize used
a little bit different format.
If I remember correctly, it was like this:
stylize [
bouton button "bonjour"
]
Anyway, the latest full release of rebol/view uses
the modern format at the top.
Anton.
[3/3] from: info:id-net:ch at: 11-Dec-2002 13:13
My code is simply composed by two styles present on the net
the ss style with DROPDOWN button and another one with MENU elements. Both
are well declared.
Two different styles added to the layout is possible, so ? Is it working for
you ?
PHil