Hiding a subpanel
Nasser
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.
have you tried the /W switch of
DoWindow
? Be sure to also use the $ operator if you have the windowName stored in a variable.March 8, 2011 at 03:39 am - Permalink
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
March 8, 2011 at 04:45 am - Permalink
where both are literal names and not variables.
You can also use
SetWindow
which looks then likeSetWindow $win, hide=1
In my case Graph0 is a normal graph and bottomPanel is a exterior subwindow.
March 8, 2011 at 05:00 am - Permalink
Once again, thank you very much! Very helpful !
Best Regards
March 8, 2011 at 05:05 am - Permalink
March 8, 2011 at 07:41 am - Permalink
Thank you for the info, I'll take a look.
Best Regards
March 9, 2011 at 06:54 am - Permalink