[ALLY] How to change stylesheets on-the-fly ?
[1/5] from: etienne:alaurent:free at: 25-Apr-2001 0:41
Hi,
Can anyone explain me how to change a stylesheet on-the-fly ?
Thanks.
Etienne
[2/5] from: carl:rebol at: 25-Apr-2001 9:38
Guess the question is where on-the-fly?
1. You can have as many stylesheets as you want.
2. Layouts can use multiple stylesheets.
3. And finally, stylesheets are just blocks of:
name face
So you can use any series function to modify the stylesheet
to insert or remove styles.
-Carl
[3/5] from: etienne:alaurent:free at: 27-Apr-2001 2:30
Hi, Carl,
What I wanted to say is this :
1. I define new stylesheets with stylize :
my-skin1: stylize [
button1: ...
button2: ...
...
]
my-skin2: stylize [
button1: ...
button2: ...
...
]
button1 and button2 in my-skin1 are different from my-skin2.
2. Now I define a layout :
my-layout: layout [
styles my-skin1
text "This is an example"
button1 "ok" [...]
button2 "cancel" [...]
button "new style" [change-style my-skin2]
]
view my-layout
3. When I click "new style", I want to change my-skin1 to my-skin2 with the
change-style
function and see the new appearance for "my-layout".
how can I write the "change-style" function to perform this action ?
Le mer, 25 avr 2001, vous avez écrit :
[4/5] from: gjones05:mail:orion at: 4-May-2001 8:27
From: "Etienne ALAURENT"
> Hi, Carl,
> What I wanted to say is this :
<<quoted lines omitted: 20>>
> view my-layout
> 3. When I click "new style", I want to change my-skin1 to my-skin2 with
the
> "change-style" function and see the new appearance for "my-layout".
>
> how can I write the "change-style" function to perform this action ?
<snip size="huge">
I'm just getting caught up on the lists after being out of town. It looks
as though there was no answer to this great question. Do you get it figured
out? I am curious about it also. Thanks.
--Scott Jones
[5/5] from: arolls:bigpond:au at: 5-May-2001 1:04
Check out Volker Nitsch's insert-face3.r
script of 10-Apr-2001 in Ally mail list.
I have an English-only version if you are
interested.
Anton.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted