Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids using MousePointer
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00558396
Message ID:
00558463
Views:
21
Hi Jeremy.

>> I think that I have solved it using the MouseMove event, but i'm unsure why I can't just use the MousePointer property.

What I am trying to achieve is that where ever the user is over the grid their cursor is a pointer and not the verticle line you get to enter/select text with. (Basically all they can do is click on the grid nothing else.) <<

What you could do id place a transparent shape with a transparent border over the grid and set its MousePointer to 1 (arrow). If you need to know what portion of the grid the user clicked on, you can use the Geid's GridHitTest method by putting code like this in the Shape's MouseDown:
LOCAL lnWhat, lnRelRow, lnRelCol
lnWhat = 0
lnRelRow = 0
lnRelCol = 0
This.Parent.Grid1.GridHitTest( nXCoord, nYCoord, @lnWhat, @lnRelRow, @lnRelCol )
lnWhat tells you which part of the grid (cell, scrollbar, etc, the mouse is over).

lnRelRow gives you the RelativeRow that the mouse is over.

lnRelCol gives you the RelativeColumn that the mouse is over.

HTH.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform