[fxruby-users] html widget and a mouseover event question

Dylan Bruzenak dylanb at digitalvalence.com
Fri Apr 28 03:00:42 EDT 2006


Thanks, exactly what I was looking for.
> On Apr 27, 2006, at 1:15 PM, Dylan Bruzenak wrote:
>
>   
>> Another question: is it possible to change the background of a menu
>> title on roll over ? I'm changing the borders, but I want the entire
>> background color to change.
>>
>> Is there are mouseover event that is triggered on a control on mouse
>> entry ?  I see some stuff for DND in FXWindow, but no other references.
>>     
>
> You might be able to accomplish this by catching the SEL_ENTER and 
> SEL_LEAVE messages. The main things to remember are that your message 
> handlers should return false (or zero) so that FOX goes ahead with the 
> normal processing for those messages:
>
> 	menuTitle = FXMenuTitle.new(...)
> 	menuTitle.connect(SEL_ENTER) {
> 		puts "enter"
> 		false
> 	}
> 	menuTitle.connect(SEL_LEAVE) {
> 		puts "leave"
> 		false
> 	}
>
> Hope this helps,
>
> Lyle
>
> _______________________________________________
> fxruby-users mailing list
> fxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/fxruby-users
>
>   



More information about the fxruby-users mailing list