Specify panel size for new TBrowser


ROOT Version: 6.32.02
Platform: Linux
Compiler: linuxx8664gcc

TBrowser *b = new TBrowser(“myBrowser”, “Need-to-specify-panel-size”, 2048, 1152);

With the line above I can open a new TBrowser with a window of a specified size. In addition, I would like to specify the size of the left panel which lists files. That panel is too narrow and I have to adjust its size every time I open a new TBrowser window. Unfortunately, the sweet spot for grabbing the panel edge is too narrow and it’s a pain to do this every time a new window is opened. Is there a way to specify the left panel size when creating a new TBrowser? Suggestions on the web must refer to old versions of ROOT and do not work for 6.32.02.


Hi,

This is not yet implemented.
But I will provide solution soon in the master branch.

Regards,
Sergey

… I will provide solution soon in the master branch.

Excellent! Many thanks.

Milind

Here is changes in ROOT master:

I’m guessing two things based on the reply so far:

  1. I would have to get and use the latest version of ROOT (which one?) for the changes made to be available.

  2. The panel size cannot be specified when opening the browser, but will automatically be larger if there are long file names in the subdirectory.

Please advise if this is a correct interpretation.

Thanks,

Milind

Hi,

New functionality will be available in the next release - end of this year.

Currently expand size cannot be specified - it is always 40% of available space.

Regards,
Sergey

OK, thanks!

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