Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[ALLY] Some color problems

 [1/3] from: d4marcus::dtek::chalmers::se at: 12-Apr-2001 19:40


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 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

 [2/3] 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:
<<quoted lines omitted: 11>>
> If you find that life spits on you > calm down and pretend it's raining
-- Carl Read [carl--cybercraft--co--nz]

 [3/3] from: d4marcus:dtek:chalmers:se at: 16-Apr-2001 22:14


On Fri, 13 Apr 2001, Carl Read wrote:
> It's because they've given the default button a gradient (I assume.) > view layout [style r-button button 0.0.0 > b: r-button "New color" [b/color: random 255.255.255 show b]]
Aha, it works! Another problem occured though, becuase my script was using inform/show-popup instead of view. Compare these two: view layout [style cbutton button black col: cbutton "" 20x20 [c0: request-color/color col/color if c0 [col/color: c0 show col e1]]] inform layout [style cbutton button black col: cbutton "" 20x20 [c0: request-color/color col/color if c0 [col/color: c0 show col e1]]] The last one doesn't work as expected here. However, I changed the script to use view instead (temporarily). I know that do-events was changed in v1.0, wonder if that's what causing the problem? Marcus ------------------------------------ If you find that life spits on you calm down and pretend it's raining

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted