How to raise an iconified TGMainWindow

Hi,
I designed an interface with several main windows (based on TGMainWindow).
I would like to know if it is possible, when one of the window is iconified, to make it show up from code functions ?

I tried different finctions, without success: RaiseWindow(), SetWMState()

I did not find anything else in the documentation.

Thank you for any suggestion.
Jérôme


ROOT Version: 6.xx
Platform: CentOS7
Compiler: g++


Try MapRaised() TGWindow::MapRaised()

Thanks a lot.
Actually, this works if the window is first unmapped, otherwise not.
In addition, to get it back at its previous position, the following code seems to do the job:

Int_t x, y;
myWindow->GetWMPosition(x,y);
myWindow->UnmapWindow();
myWindow->SetWMPosition(x,y);
myWindow->MapRaised();

Thank you very much.

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