Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG? Grid and MouseWheel event
Message
 
 
To
06/07/2005 13:23:58
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01029609
Message ID:
01029820
Views:
19
Dorin,

I don't believe this is a VFP bug per se. In your sample form I only see one brief flicker when clicking into the frontmost grid to give it focus so that it heeds the mousewheel rolls. Before clicking the grid no amount of mousewheeling over grid2 or over the space occupied by grid1 causes any flicker or grid scrolling for me.

I believe that the issue here is your "non-visible" grid has focus and it's behind the other grid. If you add this line I see no flicker of the undergrid at all:
   PROCEDURE Init
      this.grid1.RecordSource = "test1"
      this.grid1.Refresh 
      this.grid2.RecordSource = "test2"
      this.grid2.Refresh 
      this.grid2.Setfocus() && put focus onto the visible grid
>I've seen this after I've implemented a table driven list view based on VFP grid.
>
>If a grid is on top of another grid, even if it is inside another container (page, container), if mouse wheel is used to scroll the grid, the display is corrupted and the scrollbars from the grid beneath become visible and corrupt the display.
>
>Anyone have seen this. Any workarounds ?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform