Can you realise a transparent hover color for buttons?
Eric Chatonet
eric.chatonet at sosmartsoftware.com
Thu Sep 11 16:40:37 EDT 2008
Bonsoir Josh,
I agree but...
Here we always build multi-lingual applications (probably because we
are a tiny market :-) then such a solution can't satisfy us.
And I think that Tiemo is in the same situation...
Le 11 sept. 08 à 21:47, Josh Mellicker a écrit :
> The way we have done this, is:
>
> 1. make a cool button with the rounded rectangle (with Scott
> Rossi's awesome gradient tool) and name it "btnBkgd"
>
> 2. create text (use any font, and Rossi's tool to "burn" it into an
> image so it doesn't matter if the user has the font) and position
> it over the button
>
> 3. group the two, and name the group "whateverRolloverButton"
>
> 4. then, in the card script:
>
> on mouseEnter
> IF the short name of the owner of the target contains
> "RolloverButton" THEN
> set the blendlevel of img "btnBkgd" of grp (the owner of the
> target) to 50 -- or whatever
> end mouseEnter
>
> and a mouseLeave that is similar...
>
> That way, you can make as many buttons as you want without having
> to script each one. Also, the reason for detecting rollover on the
> group is that if you put the mouseEnter on the text or background
> or both, you get a weird "flickering" as the mouse goes from where
> the text is to the background image.
>
> I just wrote this from memory, sorry if it is unclear, if you want
> me to post the whole thing let me know.
Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------
More information about the use-livecode
mailing list