Hiding a subpanel

Hello,

I've created a panel which has tabs. This main panel contains 2 subpanels, which I'd like to show/hide according to the selected tab.

I've tried this :
DoWindow /HIDE=1 MAIN_Panel#MySubPanel
But subwindows don't seem to be allowed.

Does anyone know how to hide an embedded subpanel please ?

Thank you.

Best regards.
Hi Nasser,

have you tried the /W switch of DoWindow? Be sure to also use the $ operator if you have the windowName stored in a variable.
Hello Thomas,

Thank you for your answer.

Yes, I tried like this :
DoWindow /HIDE=1 /W=MAIN_Panel#MySubPanel MAIN_Panel

But it's not working neither...

Best Regards
The following works here
DoWindow/W=graphName/HIDE=1 panel

where both are literal names and not variables.
You can also use SetWindow which looks then like
variable win="Graph0#bottomPanel"
SetWindow $win, hide=1

In my case Graph0 is a normal graph and bottomPanel is a exterior subwindow.