Re: [ROOT] menu

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Sep 27 2000 - 08:57:46 MEST


Hi Jayoung,

To get one of your class member functions in the context menu,
simply add the string *MENU* in a comment field following
the prototype definition of your class.
See examples in TObject.h, TPad.h

Rene Brun

On Tue, 26 Sep 2000, Jayoung Wu wrote:

> Hi ROOTERs,
> 
> I am working on somebody else's program which displays each event graphically.
> When I click 3rd button of mouse it shows a menu bar as following.
> 
>                |-----------------------|
>                | ATICDisplay           |
>                |=======================|
>                | SetDrawSICalibator    |
>                | SetDrawSNCalibrator   |
>                | SetDrawBCCalibrator   |
>                | SetSWHandler          |
>                | GetEvent              |
>                | Zoomin                |
>                | Zoomout               |
>                | SetGeometry           |
>                |-----------------------|
>                | Delete                |
>                | DrawClass             |
>                | DrawClones            |
>                | Dump                  |
>                | Inspect               |
>                | SetDrawOption         |
>                |-----------------------|
> 
> I wonder how those functions(for example GetEvent) are incuded in this
> menu bar. I could not locate any clue in the source program.
> 
> Could you explain how a function can be shown(and exected) in this kind of
> menu bar?
> 
> ---
> Thanx,
> Jayoung
> 
> 
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:33 MET