[REBOL] Re: View/Draw'ing with 'size...
From: chris:ross-gill at: 22-Oct-2001 14:17
Hi Max,
> rebol []
>
> q-style: stylize [
> qbutton: box 100x100
> effect [ tile
> contrast 10
> gradmul 0x1 120.120.120 80.80.80
> draw [pen 0.0.255 box 0x0 size]
> ]
> ]
>
> view layout [styles q-style qbutton "HEY!"]
...
> NOW THE QUESTION:
> -----------------------------------
>
> How can my draw block have its context (binding) set to the pane object as
> in the second code example while creating stylesheets?
If you change it to face/size, does that work as intended?
- Chris
--
rebol []
q-style: stylize [
qbutton: box 100x100
effect [
tile
contrast 10
gradmul 0x1 120.120.120 80.80.80
draw [pen 0.0.255 box 0x0 face/size]
]
]
view layout [styles q-style qbutton "HEY!"]