Forum: Ruby-Gnome 2 .signal_emit but the button is not "clicked"

Posted by Marc Heiler (shevegen)
on 2011-09-05 14:39
Hi,

With:

@button.signal_emit(:clicked)

We can simulate a button is clicked.

But, is there a way to also simulate an on_hover event on that button?

With my mouse, when I hover over the button it changes the highlighted
colour.

I want to do and change the button highlighted colour for 2 seconds when
I do .signal_emit but I am not sure how ...
Posted by Simon Arnaud (sarnaud)
on 2011-09-05 21:13
Marc Heiler wrote in post #1020209:
> Hi,
>
> With:
>
> @button.signal_emit(:clicked)
>
> We can simulate a button is clicked.
>
> But, is there a way to also simulate an on_hover event on that button?
>
> With my mouse, when I hover over the button it changes the highlighted
> colour.
>
> I want to do and change the button highlighted colour for 2 seconds when
> I do .signal_emit but I am not sure how ...

I'm not sure what you want. If I understand well, you want to mimic the 
on_hover visual from your code ?
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.