On Thu, 27 Apr 2006 11:12:38 -0500, Dylan Bruzenak <dylanb at digitalvalence.com> wrote :> In the continuing saga of questions, are there any good html widgets for > fxruby ? Any ideas on building one if not ?I''m not aware of an HTML widget for FXRuby, much less a really well-established one for FOX. I think the best bet for someone (not me) would be to try to wrap Gecko (Mozilla''s HTML rendering component) in a FOX window. Or if not Gecko, some other existing HTML widget. It won''t be pretty, and will take some dedication on someone''s part, but it seems like the quickest path to a working HTML widget in my mind. A more interesting, but even less feasible, solution would be to write the widget in Ruby itself. There are already HTML parsers for Ruby, obviously. The big challenge would be working out the rendering side of it, i.e. how to lay out and "draw" the web page into a FOX window.
Dylan Bruzenak
2006-Apr-27 18:15 UTC
[fxruby-users] html widget and a mouseover event question
Hmmmmm. I''ll give it some think time. 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.> On Thu, 27 Apr 2006 11:12:38 -0500, Dylan Bruzenak > <dylanb at digitalvalence.com> wrote : > > >> In the continuing saga of questions, are there any good html widgets for >> fxruby ? Any ideas on building one if not ? >> > > I''m not aware of an HTML widget for FXRuby, much less a really > well-established one for FOX. > > I think the best bet for someone (not me) would be to try to wrap Gecko > (Mozilla''s HTML rendering component) in a FOX window. Or if not Gecko, some > other existing HTML widget. It won''t be pretty, and will take some > dedication on someone''s part, but it seems like the quickest path to a > working HTML widget in my mind. > > A more interesting, but even less feasible, solution would be to write the > widget in Ruby itself. There are already HTML parsers for Ruby, obviously. > The big challenge would be working out the rendering side of it, i.e. how to > lay out and "draw" the web page into a FOX window. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > >
Lyle Johnson
2006-Apr-28 02:32 UTC
[fxruby-users] html widget and a mouseover event question
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
Dylan Bruzenak
2006-Apr-28 07:00 UTC
[fxruby-users] html widget and a mouseover event question
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 > >