Re: [ROOT] Using custom context sensitive menus.

From: Damir Buskulic (buskulic@virgoa2.in2p3.fr)
Date: Fri Oct 04 2002 - 17:41:40 MEST


I don't know if this will answer your question, but there is the
possibility to adapt or customize popup menus (change name,
add new functions,etc...) automatically generated by
ROOT for classes deriving from TObject.
See the two tutorials customContextMenu.C and customTH1Fmenu.C.

Cheers

Damir

=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr

On Wed, 2 Oct 2002, Brett Viren wrote:

> 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