Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NT API problem
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00252686
Message ID:
00253343
Views:
29
>This is pretty easy. SYS(1270) returns the current object under mouse. The MousePointer property of the object gives you the current mouse cursor in VFP's style, but this is very easy to convert into Windows mouse cursor IDs. Am I right?
>So, it is possible. I don't know how it can be done at system level, but it can be done in VFP when the mouse is over an object.

Well, I thought of that, but the reason I'm using your code to begin with is for grid columns and activex stuff, where I can't do normal mousepointer activity...(and BTW, we really appreciate your code, it's been very stable for 2 years).

>But I want to clarify things a little bit: my code sets and resets the mouse cursor at system level. There are ~14 standard mouse cursors in Windows. These 14 cursors should be seen more like 14 possible states for the mouse cursor, then like 14 different images. The SetSystemCursor() function deals with setting images for these 14 states. My code (in that FAQ) sets and resets the images for these 14 states. This means that if you set a new image for the Wait cursor for ex, this image will show whenever an app sets the cursor to OCR_WAIT. So, you're changing the cursor icons for all apps, not only for your app.

Right, it's not something we like doing particularly, since with a vfp app problem, a user can get stuck with a transformed cursor in all applications < s > But we've had virtually no problems with that due to good, tight code, I think...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform