I'm developing an application that requires different mouse cursors depending on the controls it's on. Therefore I did some preliminary experiments and found unexpected behaviors.
To decide which cursor appears over a control, I can set its Cursor property. This setting has a local effect. I can globally set the cursor for all visible controls using Screen.Cursor.
What I noticed is that if I set before Screen.Cursor, after the local settings have no effect. This is shown by the demo program that I attach, in which, with one button you set the global cursor, using Screen.Cursor, with the other the local one of a Panel, with TPanel.Cursor.
Is this behavior correct and expected? Is it possible to set the local cursor on a control after setting the global one? Or do I have to set the cursors of the various controls individually, without touch Screen.Cursor?
Thanks.