Hi all,
The user interface of an application of mine has a couple of
FXLists that are filled enough to get a scroll-bar.
I added a right-mouse pop-up menu to these lists as follows:
@list.connect(SEL_RIGHTBUTTONPRESS) do |sender, sel, data|
menu = FXMenuPane.new(@list)
FXMenuCommand.new(menu, "Some entry") do |mc|
mc.connect(SEL_COMMAND) { do_something }
end
menu.create
menu.popup(nil, data.root_x, data.root_y)
getApp().runModalWhileShown(menu)
end
The pop-up menu works without problems, but when I invoke it
the underlying list keeps scrolling, even with no buttons pressed.
Any ideas?
Ronald
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users