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