Hilite With Transparent Button

Rob Cozens rcozens at pon.net
Fri Nov 15 10:11:01 EST 2002


Hi Scott,

>  > I requested this feature when Revolution was in beta testing. 
>Kevin added it
>>  to the list, but I don't know where it stands at this point.
>
>Hey, you want pixel inversion, just draw a white object (black on the
>Mac, I think) with its ink set to srcXor on top of your object.  Once
>you see what that looks like, though, you'll see why I think you don't
>really want what you're asking for...

If this does not produce an effect as good as what I see when I type 
"flash" in the message box while viewing a kludgy AddColor HyperCard 
image, it's not what I (& Ted?) want.  If that effect cannot be 
produced by the MetaCard engine, that's too bad.

Inverting an image (remember we're talking simple icons here, not 
fine art) on arming or hiliting is a simple, easy way to make the 
interface more responsive to the user without having to create & 
manage addition icon images.

>PS: and about that plan of using a GIF as an image library.  It's bad
>idea because the frames are all decompressed ahead of time, chewing up
>large amounts of RAM for no good reason unless you're actually going
>to use it for animation where performance is more important than
>memory requirements.

I understand the reasoning behind your general admonition, but I 
think the technique makes eminent sense in the circumstances under 
discussion:

* 314 images (I would only need 157 IF the MC engine could invert them)
* Average image size: 4K
* Images are scripted, grouped, & distributed as a set: if one is 
missing, the group can't function properly
* Images are always displayed singly
* All images are displayed at the same location
* It only uses one of the 100 icon ids you assigned me   :{`)
-- 

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)



More information about the use-livecode mailing list