Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid.MouseMove Refresh Rate
Message
From
15/04/2008 21:50:35
 
 
To
15/04/2008 21:05:45
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01310942
Message ID:
01310969
Views:
9
Jay --

Did you try the code I supplied in an earlier thread?

The part of that code that actually does the display you're interested in only runs once per each cell.

Jim


>>>Probably not more than watching the delayed highlight color change from row to row. Maybe there is a way to only call the MouseMove event at increments of time. A timer and something else? Can I take advantage of the MouseMove default behavior, but only when I want to?
>>
>>It's not clear to me what the problen is. Can you provide more details about what you're trying to acomplish with MouseMove?
>
>I'm popping up a small form (or refreshing labels on the main form, not sure which yet) when the mouse is over a row. This works, but I'm getting flicker because it looks like the MouseMove code is running over and over again very quickly. What I really need is for there to be a delay between the MouseMove code executing. I added one with a DO WHILE loop, but it causes a delay whenever arrows are used to move on the grid, if the mouse is also over the grid. I assume I need the default behaviour of the MouseMove event as it provides the coordinates of where the mouse is. I then use those coordinates to calculate the column and row, then determine the current record of the table. The information from this is what I display on the popup form. The current record does not change - well briefly just to know which one the mouse is over and gather the information - so this works well, except that I would like to control how often the MouseMove code runs.
>
>Update: The title of the main screen is what flickers. If I could just get that to stop, then I would be good to go.
Jim Nelson
Newbury Park, CA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform