TBrowser in full screen

Hi all,

I wonder whether there is a way to create an instance of TBrowser with its window in full screen.

Many thanks, Kaspi.

Hi Kaspi,

As this is very Window Manager dependent, there is actually no way in ROOT to maximize any main frame. But you can still resize it to the display size:

TBrowser *b = new TBrowser; // add some margins for the borders and the WM decorations/title b->GetBrowserImp()->GetMainFrame()->MoveResize(5, 30, gClient->GetDisplayWidth()-10, gClient->GetDisplayHeight()-30);
Cheers, Bertrand.

Thanks for a quick reply.

I see.

I understand your approach. But unforunately, your code doesn’t work well on multi-screen systems - it resizes the window over all screens. Is there a way to enlarge the window over the current screen only?

Thanks,

Kaspi.

[quote=“Kaspi”]I understand your approach. But unforunately, your code doesn’t work well on multi-screen systems - it resizes the window over all screens. Is there a way to enlarge the window over the current screen only?[/quote]Unfortunately not, sorry, but there is actually no real multi-screen support in ROOT…

Cheers, Bertrand.