Set event status bar visible by default

Hi,

I’m trying to alter the default behavior so that a TCanvas has the even status bar by default. I have added

gStyle->ToggleEventStatus()

To my rootlogon.C file. When I open a root prompt, executing

gStyle->GetShowEventStatus()

returns 1. However, creating a TCanvas with

TCanvas *c1 = new TCanvas()

gives a canvas with no event status bar, and calling

c1->GetShowEventStatus()

returns false. I’m confused about the intended behavior here: isn’t the idea that newly created canvases should inherit the style from gStyle?

Thanks


Please read tips for efficient and successful posting and posting code

_ROOT Version: 6.24/00
_Platform: macOS
_Compiler: clang 12.0.0


In ${ROOTSYS}/etc/system.rootrc or in your custom ${HOME}/.rootrc, change this line:

Canvas.ShowEventStatus:     false

to:

Canvas.ShowEventStatus:     true
2 Likes

Thank you!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.