Can you realise a transparent hover color for buttons?
Josh Mellicker
josh at dvcreators.net
Thu Sep 11 15:47:59 EDT 2008
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.
On Sep 10, 2008, at 5:21 AM, Tiemo Hollmann TB wrote:
> Hello,
>
> I have some text buttons, where I would like to realise a hover effect
> (mouseover) with a (50%) opaque/transparent color of the button
> (like the
> menu items of MS Office products on Win). Up to now I can't see a
> solution
> for this. As standard properties I can only set icons for hover
> (which would
> only make sense with icon buttons, not with text buttons, no colors,
> nore
> transparent colors. If I would make my hover effect myself with
> mouseenter,
> I can't control the transparency of the button color, just solid
> colors.
>
> Am I right that these are the two options for making a hover effect
> (icons
> or solid colors), or is there a trick with a workaround to create a
> 50%
> opacity hover effect? Probably is a set of icons anyway the solution
> of
> choice.
>
> Thanks for any hints
>
> Tiemo
>
>
>
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list