Hi Grigory,
If you are a beginner with Root, I would strongly suggest that
you do not start modifying the canvas standard toolbar.
There are better solutions:
- Create your own classes and declare your member functions
visible in the context menu. To do that, simply add the comment
string // *MENU * after the member function declaration on the
same line (see examples in Root classes, eg, TPad, TCanvas).
When you draw an object of your class in the canvas, you can click
with the right button to get the context menu for this object.
(see also http://root.cern.ch/root/HowtoDraw.html and HowtoPick.html
- Create a TControlBar
- See example program in $ROOTSYS/test/guitest
Rene Brun