Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouse Pointer problem
Message
From
03/04/1998 14:52:01
 
 
To
03/04/1998 13:14:25
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00089348
Message ID:
00089379
Views:
23
>Hi. I make up a form and has a grid on it. I want to change the mouse pointer when my mouse is over the grid control. I already set the property of the grid.mousepointer=1 (arrow) and the grid.column.textbox.mousepointer=1 but still there's no effect the mouse is still crosshair when my mouse is over the grid. I was wondering if there's a way to do it. Thanks.

Hello Richard!

Some weeks ago I described a trick for it.
You have to change the default textbox control for a dinamic current control which is a container. It contains a shape and a text box. The textbox is disabled and thus the shape will provide the mouse cursor, which you can set for anything but only for prdefined types. I donnot why, but custom mouse type doesnot work.
So, make two types of the container control. One of them will be the normal look, and the other one will be the selected look.
In the column's dinamyccurrentcontrol property put:
iif(recno()=giRecno,'containerselected','containernormal')

assuming that you named the two container 'containerselected' and 'containernormal', and make a global variable giRecno. (of course you can use instead of it a property, like Thisform.iRecno)
And put into the grid's afterrowcolchange method:
giRecno=recno()

This is only the base idea, I hope you can figure out the details. Or put an other thread about it.

BB
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform