hello
in my c++ standalone program i have a TCanvas that contains several objects, like TPads etc. now i want to add a popupmenu (TGPopupmenu, i guess) to the menu bar on top of the TCanvas.
does anyone know how this can be done?
[quote]
in my c++ standalone program i have a TCanvas that contains several objects, like TPads etc. now i want to add a popupmenu (TGPopupmenu, i guess) to the menu bar on top of the TCanvas.
does anyone know how this can be done?
i’m using root 5.11/06.
zimmi[/quote]
Try embedded canvas. In gui test ($ROOTSYS/tutorials/guitest.C) there is an example of usage - it’s embedded into dialog, but you can simply convert this into TGMainFrame_descendant + TRootEmbeddedCanvas.
PS. Or you can modify you TRootCanvas to add new menu )
[quote=“tpochep”]
Try embedded canvas. In gui test ($ROOTSYS/tutorials/guitest.C) there is an example of usage - it’s embedded into dialog, but you can simply convert this into TGMainFrame_descendant + TRootEmbeddedCanvas.
PS. Or you can modify you TRootCanvas to add new menu )[/quote]
thanks for answering. so there is no way to do it with TCanvas?