05-21-2025 12:53 PM - edited 05-21-2025 12:54 PM
I cannot look at your code right now, but just by looking at the values of your constants, they furiously look like the offset between the origin of the front panel window (including the semi-transparent borders added by Windows 10) and the origin of the panel itself (where you place your controls).
Try using VI property "Front Panel Window -> Panel Bounds" instead of "Front Panel Window -> Window Bounds" and see if you can remove these constants.
As for the comment about the additionnal offset when the slider's label is visible, this case should probably be handled inside the subVI, not outside.
Regards,
Raphaël.
05-21-2025 04:10 PM
@raphschru wrote:
Try using VI property "Front Panel Window -> Panel Bounds" instead of "Front Panel Window -> Window Bounds" and see if you can remove these constants..
Let's not overcomplicate things. As I demonstrated, none of these "corrections" and tweaks are needed if we use the mouse properties of the image. 😄
05-22-2025 02:49 AM
Thank you for your time and trouble. I will go through your code and try to understand it.
Regards
Mark
05-24-2025 12:13 PM
On a side note, I have written an idea to include the mouse properties as event data node for 2D pictures to simplify things.
Please all vote for it! Thanks!