Is it possible to hide and show a panel ?
Djebulon
I have a panel included in a window (Main#FitPanel)
I created it with
NewPanel/K=1/W=(0.43,0.71,0.50,0.98)/HOST=Main/N=FitPanel
Inside this panel I put several buttons and displays.
I want to be able to hide and show this panel regarding the state of other options (checkboxes) located in another place of the main window.
Basically, when I select the first checkbox, I want to show the panel and when I select the second checkbox, I want the panel to be hidden.
And the panel should be inside the main window.
I tryed with
Dowindow/Hide=1/W=Main#FitPanel FitPanel
and with several other syntaxes but it doesn't work....
modifypanel
allow the user to change only the size .. but not the state of display of the panel.Is there an option somewhere ??
thank you in advance :)
SetWindow Main#FitPanel hide=1
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
August 26, 2015 at 09:26 am - Permalink
I didn't find this function as it's not very well indicated in the help .. (no direct link from newpanel for exemple ...)
I found just :
DoWindow
RenameWindow
ModifyPanel
SetActiveSubwindow
MoveSubwindow
Controls and Control Panels
but I didn't find the
setwindow
one ...August 27, 2015 at 06:55 am - Permalink
However, in this case, you might benefit from the Command Help tab of the Help Browser (Help->Command Help). At the top left of the Command Help tab are three checkboxes and menus that you can use to filter the list of commands and functions. If you select just Operations and All Windows you will get a relatively short list that includes both GetWindow and SetWindow.
Twenty-five years ago, when I was a Geophysicist doing real research, I used to put myself to sleep at night browsing through the Igor manuals :)
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
August 27, 2015 at 09:54 am - Permalink