Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Active Row or Cell MouseEnter
Message
 
 
To
11/12/2008 23:48:31
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01366646
Message ID:
01366834
Views:
9
>>This is probably the one
>>
>>Re: Grid activity for object under mouse Thread #1211777 Message #1311084
>>
>>I haven't re-checked it again.
>
>I ended up doing it along these lines:
>
>lcGridName = ALLTRIM(THISFORM.GridName)
>
>m.MouseXCoord = MCOL(WONTOP(),3)
>m.MouseYCoord = MROW(WONTOP(),3)
>
>m.GridRelativeRow = THIS.PARENT.&lcGridName..RelativeRow
>m.GridTop = THIS.PARENT.&lcGridName..Top
>m.GridHeaderHeight = THIS.PARENT.&lcGridName..HeaderHeight
>m.GridRowHeight = THIS.PARENT.&lcGridName..RowHeight
>m.CalculatedPosition = m.GridTop + m.GridHeaderHeight + ((m.GridRelativeRow * m.GridRowHeight)-(m.GridRowHeight/2))
>
>And then comparing the m.MouseYCoord and the m.CalculatedPosition using the BETWEEN() function. Work great, but took me awhile to figure out how to do it.

Why you're still using macros when there are other ways to get an object reference?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform