Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Set MOUSEOVER curor in a Grid
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00058554
Message ID:
00058752
Views:
40
>>See my 2 FAQs on mouse pointers in the KB here on UT (Win32 API category).
>>
>>Vlad
>>
>>>How can I control the MOUSEOVER cursor shape with controls in a Grid.
>
>If I understand your FAQ correctly then I could globably change the cursor shown by windows
>anytime it expected to display a particular cursor id. Ok this would work, but I'd have to swapping in and out the cursor every time I enter the grid. I may want the "i-beam" at other times in text fields.

Correct. It's a bit of work to have it properly done and I don't think it worths it if you don't really need it.

My FAQs were "generated" by a the same problem in a thread a few months ago. I still don't know any other better solution.

>It appears to me this is a bug in the way the cursor property is being handled when a text control is used in a grid v. used in any other container object. The grid very clearly respects the type of control and changes the MOUSEOVER cursor between objects like a checkbox and the infamous text box. Is it documented somewhere that controls lose the functionality of the mouse properties when used in a grid container but not in other nested containers.

The MouseIcon and MousePointer properties are not the only properties that are ignored when a control is in a grid. Basically, you must test your controls in a grid when you want to use them in a grid and see what happens.

>I realize if this is a bug MS will probably never care, but I don't want to code around something for no good reason.

As I said, I don't believe it worths to do these workarounds just to change the mouse pointer. Unless you have clear specifications that requires this, of course. After all, VFP is a database tool for database applications and a small feature like mouse pointer change is not very important. IMHO.

>Thanks for your reponse and pointers to your articles, I'll gladly reuse your code as a workaround if needed.

You're welcome.

Vlad
Previous
Reply
Map
View

Click here to load this message in the networking platform