[ALLY] Re: Some color problems
From: carl:cybercraft at: 13-Apr-2001 10:21
On 13-Apr-01, Marcus Petersson wrote:
> In the old View beta, you were able to update colors like this:
> view layout [b: button "New color" [b/color: random 255.255.255 show
> b]]
> Seems I'm unable to get button colors updated. It is indeed set:
>>> b/color
> == 214.70.206
It's because they've given the default button a gradient (I assume.)
Try this...
view layout [
style r-button button 0.0.0
b: r-button "New color" [b/color: random 255.255.255 show b]
]
To keep the gradient you'd need to play with b/effects I guess...
> but show doesn't update it. Setting colors directly is not a
> problem:
> view layout [button b/color]
> One would hope at this point that only button is a problem. And
> indeed:
> view layout [t1: area "Hello!" col: button "" 20x20 [
> c0: request-color/color col/color
> if c0 [(col/color: t1/font/color: c0) show [col t1]]]]
> seems to work fine. But I've got another function where it doesn't
> even though the code is exactly the same (and there's a bunch of
> other weird things going on there).
> Marcus
> ------------------------------------
> If you find that life spits on you
> calm down and pretend it's raining
--
Carl Read
[carl--cybercraft--co--nz]