Re: [ROOT] menu

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


Hi Jayoung,
Could you specify which version/machine you use ?
I do not see any problem when clicking the OK button
without filling the option.
For DrawClone and SetDrawOption, you can specify a drawing option.
If you do not specify any option, the default option "" will be
used to draw the new object.
For Delete, there is no option implemented yet. You can
leave the option blank.
Please reply to me directly, not to the list.

Rene Brun

On Wed, 27 Sep 2000, Jayoung Wu wrote:

> Thanks a lot!
> 
> I have one more question.
> Considering the following context menu,
> 
> > >                |-----------------------|
> > >                | ATICDisplay           |
> > >                |=======================|
> > >                | SetDrawSICalibator    |
> > >                | SetDrawSNCalibrator   |
> > >                | SetDrawBCCalibrator   |
> > >                | SetSWHandler          |
> > >                | GetEvent              |
> > >                | Zoomin                |
> > >                | Zoomout               |
> > >                | SetGeometry           |
> > >                |-----------------------|
> > >                | Delete                |
> > >                | DrawClass             |
> > >                | DrawClones            |
> > >                | Dump                  |
> > >                | Inspect               |
> > >                | SetDrawOption         |
> > >                |-----------------------|
> 
> the bottom part seems to be automatically inherited from root.
> When I click Delete, DrawClones or SetDrawOption it gives me a dialog
> window for option. What kind of option does it mean? I do not know what
> value I should type in. Whenever I clik OK it causes segementation fault. 
> 
> Could you please explain it?
> 
> ---
> Again thanks a lot!
> Jayoung
> 
> 
> 
> On Wed, 27 Sep 2000, Rene Brun wrote:
> 
> > 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