General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only