Hide/Show TEveBrowser

Hey!

I need help with the TEveBrowser. I would like to hide it, and after some time (on button click) show it again, so… how can I hide the TEveBrowser?

I’ve tried something like this:

gEve->GetBrowser()->HideFrame(gEve->GetBrowser()->GetMainFrame());

But it wasn’t working :slight_smile:

Thank you!

Hi,

TGCompositeFrame::HideFrame(TGFrame *f) can only hide one of its sub-frame, so you should use UnmapWindow()/MapWindow() instead. For example, something like:

gEve->GetBrowser()->GetMainFrame()->UnmapWindow();
Cheers, Bertrand.