Getting a hand shape mouse-pointer with shadow on windows 2000/xp using delphi 7
Posted on 2003-03-21
Currently i am programming an application that uses labels that act as hyperlinks (they have a blue color and an underlined font). When hovering over these labels I want the mouse-pointer to act exactly as it does in Microsoft's Internet Explorer.
Surprisingly I didn't get the standard hand-shaped mouse pointer when setting the cursor-property of the label to crHandPoint. After searching a while on the internet, I found a patch witch describes replacing the ugly hand-pointer delivered with delphi by the Internet Explorer-style hand-pointer. This already improved the mouse pointer's look a lot.. but still there is something missing.. the pointer-shadow.
When choosing a mouse-pointer different from crDefault for the Cursor-property of a label, the mouse-pointer looses it's beautiful shadow when moving it over the label. Please mention that this only occurs on Windows 2k and Windows XP systems as they are the only Microsoft operating systems that support mouse-pointer shadows.
Now my question is: Is there a way (in delphi 7 on Windows 2000 or XP systems) to use the hand shape mouse-pointer without loosing it's shadow? If you want to provide an answer to my question, please (try to) post (a link to) sourcecode implementing your solution.
Thanks in advance,