Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Active Row or Cell MouseEnter
Message
From
12/12/2008 00:40:05
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01366646
Message ID:
01366839
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?

That's all you have to say? I thought I did pretty good getting an event to fire from a custom class when the mouse is over the active row of a grid. I don't care about the macros. They work just fine. Someday when I have time I'll see about doing it differently. Why are you so against them?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform