Ever run into a problem or a question that you were sure someone else HAD to have dealt with the same thing, yet you could not find any answer on the internet? Or you did find answers, but it took you hours or even days? This blog is simply a running account of the questions and answers that I have struggled with. May it save you gray hairs and sleepless nights.
Sunday, March 14, 2010
Q. How do you close all open graphs in Igor Pro?
A. There is no default way to do this, but a clever Japanese man (or woman, i don't know) came up with the following short trick to do the job (see above). The actual text is posted in the comment section for your copying ability.
Menu "Control" "Close All Graphs/9", CloseAllGraphs() End Function CloseAllGraphs() String name do name = WinName(0,1) // name of the front graph if (strlen(name) == 0) break // all done endif DoWindow/K $name // Close the graph while(1) End
1 comment:
Menu "Control"
"Close All Graphs/9", CloseAllGraphs()
End
Function CloseAllGraphs()
String name
do
name = WinName(0,1) // name of the front graph
if (strlen(name) == 0)
break // all done
endif
DoWindow/K $name // Close the graph
while(1)
End
Post a Comment