I’m experiencing an issue with changing the cursor over a canvas within a container control. Precisely, I have a container control that contains a canvas.
I want to change the cursor when over the container and over the canvas.
When the cursor hovers over the canvas, there’s a glitch where it alternates between the custom cursor I set and the standard cursor. However, when the cursor is over other parts of the container (outside the canvas), the cursor changes as expected.
I’ve attached a sample project that demonstrates the problem. If anyone has any ideas on why this might be happening, I’d appreciate your help!
P.S. I’ve tried moving the MouseMove event handling to the canvas itself, but the issue persists.
Thank you, it works!
This is working fine but its giving me a static cursor over the whole container.
what if i need to change the cursor over a specific area over the canvas which is part of the container.
Do you have any suggestions on how to achieve this?
We found that setting the Cursor of the parent Container to nil and then updating the Canvas cursor resolved the problem, here is an updated version of the project