
NewPanel problem

Homer
I have a problem to implement a new panel into a window. The problem is as follows:
1) I have a Window which includes a few tabs.
2) In one these tabs I have a button (lets call it "NewPanelButt") to open a new panel which includes ListBox, setVariable and other objects.
3) When I press the NewPanelButt, all buttons in the main windows and other tabs are being deactivated or disappeared. However some new checkbox and some of the objects from the main window will appear in the new panel, and everything get messy.
4) I should close the window and open it again to fix this mess.
5) However, everything works well inside the main window if I did NOT click on it when the new panel is still open.
Here is the command for the new panel:
NewPanel/HOST=#/EXT=2/HIDE=0/N=New_Panel_test/K=1/W=(0,0,800,280)
Is there any suggestion to fix this problem?
I suspect that the code that creates the new panel includes commands to create controls.
Those commands MUST use the win= keyword when creating controls in an exterior window.
The win=Panel0#New_Panel_test keyword=value pair must be in EACH Button, TabControl, etc command (Here I'm assuming that your window's name is "Panel0", but it could be "Graph0" or whatever):
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
August 26, 2013 at 09:00 am - Permalink
I'm working with Igor Pro 6.22A.
The code is very long and it is not helpful to put the whole code here, however I put here the proc function for controlling the button ("Open_New_Panel") which creates the new panel("Excitaion_Energy"):
I should make it clear that the buttons and etc in the new panel (Excitation_Energies) work fine. The problem is that when this new panel is still open and I click on the host window (Experiment), the buttons on the host window (Experiment) disappear or deactivate and some of them will appear in the new panel (Excitation_Energies). I think the problem is that, by pressing the "Open_New_Panel" button in the host window to open the new panel, Igor identify the new panel as the main panel and then shows the Host window (Experiment) objects in the New Panel.
Thanks
August 26, 2013 at 12:31 pm - Permalink
I revised your function slightly and created a framework for testing:
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
August 26, 2013 at 03:25 pm - Permalink