Is it possible to create a host graph window with an exteriour subwindow graph? Analog to panels.
Or can you simply attach one graph window to another?
What do you want to achieve with that? If you want two graphs to follow each other you could also write a hook function (SetWindow) and act on the 'moved' action, dragging the other window along.
That's exactly what I needed!
The goal was just to attach two graph windows belonging together and make them move together, the main graph window and an extra information graph window which can be opened when it's needed.
I can tell you from experience that writing a hook function that will move one graph when the other is moved will be fraught with difficulty.
There is no such thing as an "external graph", but you could create an external panel, and make the second graph a subwindow in the external panel. Then you leave the hard part up to Igor's internal code. Copy this recreation macro into your Procedure window:
SetWindow
) and act on the 'moved' action, dragging the other window along.March 5, 2014 at 05:27 am - Permalink
The goal was just to attach two graph windows belonging together and make them move together, the main graph window and an extra information graph window which can be opened when it's needed.
Mui thanx chozo
March 5, 2014 at 08:30 am - Permalink
There is no such thing as an "external graph", but you could create an external panel, and make the second graph a subwindow in the external panel. Then you leave the hard part up to Igor's internal code. Copy this recreation macro into your Procedure window:
PauseUpdate; Silent 1 // building window...
Display /W=(106,120,501,328) junk
NewPanel/HOST=#/EXT=0/W=(0,0,390,204)
ModifyPanel fixedSize=0
Display/W=(92,51,277,156)/FG=(FL,FT,FR,FB)/HOST=# junk2
RenameWindow #,G0
SetActiveSubwindow ##
RenameWindow #,P0
SetActiveSubwindow ##
EndMacro
Then execute these commands:
make junk2=gnoise(1)
graph0()
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
March 5, 2014 at 09:41 am - Permalink