Hi all,
I noticed recently that "modern" applications will generally allow scrolling text when the text is larger than fits the control, simply when the mouse is hovering over that control. And I realized, in one of my own applications that this "intuitive" behavior wasn't there. I have a grid that contains the values for companies. But if I click in another grid I have on a contact, and then "hover" back over the companies grid, the mouse wheel still thinks I'm in the contact grid.
I then thought, ok, I'll just use the MouseEnter() event to do something like "This.GotFocus()", but it turns out GRID control doesn't have a GotFocus method... Which lead me to realize, than when I initially click the grid control, it doesn't select the row I'm hovering over, that acts a a "Click" event AFTER the grid is clicked on again, so I don't get how the "Focus" is getting set on a Grid without a GotFocus() event?
So what I would like achieve is the ability to just hover over the control and allow me to scroll the control without having to click on it first.
Does this make sense? Is there any way to mimic this behavior with VFP 9?
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."
I noticed recently that "modern" applications will generally allow scrolling text when the text is larger than fits the control, simply when the mouse is hovering over that control. And I realized, in one of my own applications that this "intuitive" behavior wasn't there. I have a grid that contains the values for companies. But if I click in another grid I have on a contact, and then "hover" back over the companies grid, the mouse wheel still thinks I'm in the contact grid.
I then thought, ok, I'll just use the MouseEnter() event to do something like "This.GotFocus()", but it turns out GRID control doesn't have a GotFocus method... Which lead me to realize, than when I initially click the grid control, it doesn't select the row I'm hovering over, that acts a a "Click" event AFTER the grid is clicked on again, so I don't get how the "Focus" is getting set on a Grid without a GotFocus() event?
So what I would like achieve is the ability to just hover over the control and allow me to scroll the control without having to click on it first.
Does this make sense? Is there any way to mimic this behavior with VFP 9?
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."