09-23-2007 11:11 AM - edited 09-23-2007 11:11 AM
Actually, the problem seems to be deeper than just a zoomfactor of zero. However, setting the zoomfactor once to anything, even a "new zero", clears the problem.
Setting a zoom factor of zero is actually equivalent to setting the zoom factor to 1 (should be documented in the help, but isn't). In this particular case, we can:
As the zoom factor gets smaller and smaller, the image gets smaller and smaller and the mouse coordinates grow without bounds. However a zoom factor of exactly zero will draw the image 1:1 and the coordinates reported are correct for that.
My best guess is that there is at least on other thing internally inconsistent or corrupt (Darren was right after all, even though a description alone cannot corrupt an image indicator) and setting the zoomfactor property unscrambles the problem. Interesting!
If we create a new picture indicator and read out the zoomfactor, it is "1".
We can duplicate the incorrect behavior (position always zero) by setting the zoomfactor to "NaN" or "Inf", for example but if we would load an image, it is not visible. In the current, unmodified VI, the image is visible at 1:1.
Message Edited by altenbach on 09-23-2007 09:22 AM
09-23-2007 11:30 AM
OK, I guess that means the control is corrupted and that there is need to investigate.
09-23-2007 04:15 PM
09-24-2007 06:09 AM
Ok - I am back from a busy weekend and surprised to see all of this activity. Yes, this control innocently was dropped from an NI toolkit VI under development.....which is why right after I originally posted I thought I should probably try to drop a fresh picture control and see if I ran into the same problem....Thanks for all the folks who looked into this.
Sincerely,
Don