Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouse Cursor
Message
From
28/08/1997 08:54:05
 
 
To
28/08/1997 07:53:16
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00047287
Message ID:
00047312
Views:
19
Can you send me the code you have in those methods? Ie: all the code that involves the cursor changing mechanism. I can try to guess what the problem might be, but I prefer to go directly to the source.

Beside that: If you change the IBeam system cursor, it will be changed in all applications. Since you do it in MouseMove, you can't know for sure when to restore it (there's no event to know that the mouse left the object in VFP). Usually, you can't do something in MouseMove if you need a restore action when the mouse leaves the object (unless you build all your framework on this concept: all objects know that there might be something to restore).

That means the IBeam cursor might never be restored.

It looks to me that the use of the MouseIcon property here would be more apropriate.

Vlad

>Hi Vlad,
> I have been experimenting with the mouse cursor set and reset code in the FAQ and am having a problem with it. I still must be missing something. I have been experimenting with changing just one mouse cursor ( the I-beam, 32513 ) in a grid to the normal arrow using LoadCursorFromFile() and SetSystemCursor() then changing it back to the I-Beam using CopyIcon() and SetSystemCursor() using the algorithm in the FAQ. I set the new cursor in the MouseMove() of one of the columns of the grid and reset it in the MouseMove() of a different column ( and also the Destroy of the form ). If I first move over the column that restores the I-Beam before moving over the column that changes it to an arrow, SetSystemCursor() reports it successfully changed it back to the I-beam. But if I then change the cursor to an arrow by moving over the appropriate column, the cursor changes to an arrow successfully, but then moving over the column to reset it, SetSystemCursor() reports it failed and the cursor
>remains an arrow. The code in the Destroy also fails. I tried storing the original I-beam cursor using CopyIcon() in both a form property array and a Public array with the same results. Copyicon() returned a valid value indicating success. OS is WinNT 4.0, SP3. Can you shed any light on where I am missing it?
>
>Thanks,
>Bill
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform