05-12-2009 12:35 PM
In LV 8.5 I notice that if you reinitialize your picture control to default value (using pop-up menu) the mouse position property no longer works, it will always return 0,0 no matter where the mouse is in the control. You must destroy and re-create your picture control to fix it at that point.
Maybe this has been fixed in later versions of LV but I have not seen any documentation of this.
Solved! Go to Solution.
05-13-2009 05:27 PM
Good Afternoon Garvacious,
When you say the pop-up menu, I assume you mean the menu that appears if you right-click on the control.
I just tried this in LabVIEW 8.6.1. My mouse cursor position reads 0,0 when the mouse is over the control and -1,-1 when the mouse is not over the control. This is a bug. I have filed the appropriate internal documentation (Corrective Action Request #167102) so that R&D is aware of the issue.
Thank you for letting us know about this behavior. I am sorry for any inconveniencce this bug has caused you.
03-21-2011 09:48 AM
I'm using LV 2009 on Windows XP and it still hasn't been fixed; i get -2147483648, -2147483648 both inside and outside the control. Was it fixed with 2010?
03-21-2011 10:18 AM
Hello Snamprogetti,
As of today (LV 2010 SP1), a fix has not yet been implemented.
07-06-2018 01:08 PM - edited 07-06-2018 01:09 PM
It is also still broken in LabView 2014 SP1. The only fix is to delete the 2D Picture object and make a new one (copy and paste the control/indicator does not fix it)
07-23-2020 05:09 AM - edited 07-23-2020 05:14 AM
In LV2020, you get -2147483648, -2147483648. So not fixed.
There is a fix!
Setting the zoom factor with the Zoom Factor property resets the behavior. The value doesn't need to change, so this works:
Haven't tested this in older versions, but works wonders in LV2020.
07-23-2020 05:13 AM - edited 07-23-2020 05:15 AM
Fixes the problem in LV13 as well.
Just to make sure, this does not fix the bug! It is a workaround to recover from the bug. It's easier than replacing the control and reapplying all properties and cosmetic changes.