Re: ContextMenu

Fons Rademakers (Fons.Rademakers@cern.ch)
Tue, 07 Apr 1998 14:50:51 +0200


Have to correct myself. *TOGGLE in contextmenu's is implemented.
I was refering to something else (option menu's in argument input
dialogs) that are not yet implemented.

So to make *TOGGLE work you need SetXXX() and GetXXX() functions.
Look for example in TPad.h:

virtual void SetGridx(Int_t value = 1) {fGridx = value;} // *TOGGLE*

requires the exisitence of a:

Bool_t GetGridx() {return fGridx;}

Cheers, Fons.

Fons Rademakers wrote:
>
> Hi Dmitry,
>
> Only *MENU works, *TOGGLE will come soon, after easter.
>
> Cheers, Fons.
>
> Dmitry Kirillov wrote:
> >
> > Hi,
> > How can I use such options of ContextMenu as // *TOGGLE*, or
> > // *MENU* *ARGS..., as it done for example in TPad.h?
> > Only // *MENU* works.
> >
> > Thanks,
> > Dmitri
>
> --
> Org: CERN, European Laboratory for Particle Physics.
> Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248
> E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland          Phone: +41 22 7679248
E-Mail: Fons.Rademakers@cern.ch              Fax:   +41 22 7677910