Using other windows while prompt waits for user.
rhjpires
In the procedure I am writing, the user is asked to input two variables in a prompt dialog box.
However, to do this, the user needs to access another window containing a graph, get the cursors in the graph to get the much needed info to input in that dialog box.
The problem now is that, while the prompt dialog box is active and waiting for input, no other window can be accessed.
Can I do anything to modify the behavior of the dialog box?
I guess I could do a panel... but I have not yet ventured into doing this with Igor.
Is there any other solution?
Many thanks!!
R.
February 28, 2017 at 05:11 am - Permalink
I think I got it!
Cheers,
R.
February 28, 2017 at 05:57 am - Permalink
..or you bring the Graph in question to the front using
DoWindow/F
and then place cursors A and B to the trace with e.g.Cursor A, TraceName, xMin
andCursor B, TraceName, xMax
February 28, 2017 at 07:14 am - Permalink
So, I have looked at the
Cursor
and also at theGetMarquee
operations , both of which will allow me to graphically select a range. This is great because I don't need to actually read the values in the graph, I visually define my ROI, so I can ditch the prompt window. Great!But now I am back to my original question again.
While I could plot everything, place the marquee or cursors and then run the script, since I have to do this for a bunch of curves, I would much rather have the plot be presented to the user, at which point it would either draw a marquee or place cursors, and once this is done, the script would continue with the info it collected.
So, I come back to my original problem, how to I keep the script from advancing until it has this info is satisfied, or eventually, until it has the OK from the user to proceed.
Please let me know of any suggestions.
Cheers,
R.
February 28, 2017 at 09:06 am - Permalink
PauseForUser
February 28, 2017 at 09:09 am - Permalink
February 28, 2017 at 10:20 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
February 28, 2017 at 04:23 pm - Permalink