[fxruby-users] Popup menu attached to a FXTreeItem

lyle at knology.net lyle at knology.net
Wed Aug 17 16:47:49 EDT 2005

On Wed, 17 Aug 2005 14:54:56 +0200, "thom01" <thom01 at laposte.net> wrote :

> Thanks a lot, your example helped me to solve my problem.
> I'm a little confused with the create function :
> > 		# Create it
> > 		popupMenu.create
> I have a menu bar in my application, I don't have to call
> create to display a menu pane from it.
> Maybe because the menu bar is part of the main window, and
> menus are created before calling FXMainWindow.show or
> FXApp.create?

Yes, exactly. There's a question in the FOX FAQ list (at
http://www.fox-toolkit.com/faq.html) about the whole issue of when it's
necessary to call create() on a newly constructed window, or icon, or whatever.

> I think I have the same kind of problem to add a new tab item
> to a tabbook.

Could be.

> If you have time, could you complete the tabbook example
> (http://www.fxruby.org/examples/tabbook.rb) by adding an
> Add/Remove tab menu option?

I've added this to the list of FXRuby feature requests:


Hope this helps,


More information about the fxruby-users mailing list