[REBOL] Re: Sticky Button Down State
From: ishtahara:y:ahoo at: 1-Jul-2003 5:06
--- Gregg Irwin wrote:
> I don't have time to respond in proper detail, but
> don't forget that this is true for any event driven
> system, not just REBOL
Very true. Program hardening is not avoided in any
development.
> In more complex situations another solution may be
> called for. I haven't done it, but you could
> probably write styles that handle multivents at
> least better than the raw styles do now.
I don't do much View programming now, but when I do it
would be great to see examples or a How-to. ^_^
> My main tool against this kind of problem is a state
> machine. Events are placed into a queue and
> dispatched from there.
Sounds complex...
Thinking further about Anton's (Gabriele's) trick:
Maybe the following could work:
- Set button text to gray
- Set feel to none at beginning of action block
- Process actions
- Reset feel to accept button clicks
- Reset button text to original color
Maybe this would not stop events from building in
queue though.
~D