Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Popup Form when Mouse is Over a Cell in a Grid
Message
From
15/04/2008 15:52:18
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
15/04/2008 15:46:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01310765
Message ID:
01310892
Views:
9
I meant that I'm using MouseMove and MouseLeave, but you are saying to just use MouseMove? My form doesn't popup regardless of whether I move across columns or whatever. How did you use MouseMove to accomplish this with the record pointer? I'm a little desperate, so if it's money you want... <g> But I'm a little serious too...

>The problem with MouseEnter and MouseLeave in a grid is that they only occur when you move out of the column ... they don't fire when moving up/down within a column.
>
>You can see this is you turn on turn on Event Tracking in the debugger.
>
>My solution has been to use MouseMove, which calculates what row you're in.
>
>There's another complication here as well. The user can move the mouse over any record in the grid, but the current record for the grid's recordsource doesn't change. That means you also have to jump thru some hoops to determine what record really corresponds to the cell where the mouse is hovering.
>
>>>Jay --
>>>
>>>So you don't really need a form, do you, just something which will appear when you hover? For instance, it could be an object in the same form as the grid, correct?
>>>
>>>>>>I've been trying to find a way to do this, but the only thing that seems to act this way at all is the ToolTips. Not a way I can find to use that. Anyone done this or have any ideas?
>>>>>
>>>>>I see Gary has given you a technique that sounds like it will work. Out of curiosity, do you want the popup form to receive focus or just hover off to the side somewhere? Receiving focus might not be that great from a UI perspective. A user who simply passes the mouse over a grid, accidentally or on purpose, might not want to be tossed into a new form. And s/he might get dizzy if the mouse passes over a range of grid cells, a whole series of forms opening and closing. Asteroids!
>>>>
>>>>Just a hover. Just want to show information on the selected record. I'll build a timeout into it so it disappears after a so many seconds unless the mouse moves over it. It would be extra cool if I could make it fade in and out too. Have to look into that.
>>
>>Well, I was using a small form as an object on the main form; oForm using the visible property to make it appear/disappear. I put another textbox directly on the main form and it works fine, but I have some sort of issue now with the MouseOver and MouseLeave not working for the textboxes in the grid.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform