Hello all,
I'm currently taking over a piece of code from a colleague who has left, and I'm looking to improve how we capture defect locations on parts.
At the moment, the process involves loading the part type, displaying a background image accordingly, and having the operator click on a grid of overlaid buttons to mark the defect location. While functional, this approach feels quite rigid and not very elegant—especially given the large number of buttons involved.
Ideally, I’d prefer a solution where we can simply capture the pointer location on click, directly within the container. However, I haven’t found any reliable way to get the click coordinates relative to the container (only global coordinates, which aren’t ideal for this use case).
Would you have any recommendations or ideas on how to implement this more flexibly?
Thanks in advance!