Change size of left tab in a TEveBrowser programatically

Is there any way to set the size of the left tab in a TEveBrowser, (which inherits from TRootBrowser) ? I have an Eve based program with a lot of controls in the left tab and it would be nice to be able to size the tab to fit its contents. The user can do this by grabbing the divider between left and right tabs and moving it but it would be preferable if it was right to start with when the program starts up.

@matevz can help you with this question I am sure …

I managed to answer it myself by poking around in the code of tgvsplitter. This is the solution:


TGFrame* f= (TGFrame*) (gEve->GetBrowser()->GetTabLeft()->GetParent());
f->Resize(300,600);
( (TGCompositeFrame *) f->GetParent())->Layout();
1 Like

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