[ROOT] Using custom context sensitive menus.

From: Brett Viren (bv@bnl.gov)
Date: Wed Oct 02 2002 - 20:07:49 MEST


Hi,

I have:

	class GuiMenu : public TGPopupMenu
and
	class GuiMenuBar : public TGMenuBar


Currently I create a GuiMenu for a particular class of graphical
objects in a TPad.  This menu is used as a submenu in one of the
GuiMenuBar's menus.

I would like to also use this submenu as a context sensitive popup
menu.  Is there some way to tell the TContextMenu system to use this
submenu ?

As far as I can tell the only way to do this is to subclass
TRootGuiFactory, overriding CreateContextMenuImp and then swap out
gGuiFactory.  Is there a better way?


Thanks,
-Brett.



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:12 MET