Weird issue caused by sequential order of functions?
PeterR
I am encountering a strange issue:
I am processing an image (smoothing operation). The dialog includes a checkbox to let the user decide whether the smoothed result should be displayed after the successful processing.
The smoothing is followed by a progress bar indicating the progress of the image-processing.
After the smoothing operation, the result should be displayed according to the state of the checkbox.
The attached picture shows the problem: When the checkbox tells igor to display the result, the progress bar does not count till 100 % (a small portion of the bar is missing, see picture).
The displayed graph with the result, however, has an added box in the left upper corner, stating "100". I have no clue why this happens, but it might be due to the displaying directly following the image process?
Any help or input would be appreciated :)
Best regards,
Peter
I just wanted to find out whether this is something I got wrong or a bug that I cannot help.
Thanks again :)
August 27, 2014 at 03:42 am - Permalink
It will be easier to debug your code this way.
--
Gregor Kladnik
ALOISA beamline @ Elettra synchrotron
August 27, 2014 at 04:40 am - Permalink
August 27, 2014 at 06:08 am - Permalink
Also, in this snippet: http://www.igorexchange.com/node/619
there is no such flag - where do I have to put the /W to make it work?
August 27, 2014 at 01:02 pm - Permalink
For controls you use the win keyword. As in
ValDisplay myValDisplay, win=Panel0, ...
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
August 27, 2014 at 01:21 pm - Permalink
By adding the "win = PanelName" to every instance of the ValDisplay.
Thanks for the help!
Regards,
Peter
August 27, 2014 at 02:48 pm - Permalink
Sorry, I forgot about our lack of consistency :)
/W is for operations like ModifyGraph, while the win= keyword is for controls, as John mentioned.
August 28, 2014 at 05:55 am - Permalink