Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Non-existent grid mouse events
Message
From
18/11/1998 12:55:35
 
 
To
18/11/1998 10:23:57
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00158774
Message ID:
00158886
Views:
15
>I have a grid with 1 column. I have grid.mousedown/mouseup and grid.column.image.mousedown/mouseup event code. The code NEVER fires as I click from cell to cell. Once I enter a cell, and click on the image, then the image.mouse code fires.
>
>BUT, if I turn event tracking on in the debugger, it shows that the grid.mouse events are firing every click.
>
>What is the deal?!? I'm getting a little nervous here about the basic implementation of events in (at least) a grid.

OK, the grid events fire, but, to quote from the ONLINE DOCUMENTATION:

"Containers and Object Events
There are two basic rules to keep in mind when you are writing event code for controls:
· Containers do not process events associated with the controls they contain."

Further down it reads (my italics):

"This rule is also true of grid controls. The grid contains columns which in turn contain headers and controls. When events occur, only the innermost object involved in the event recognizes the event. The higher level containers do not recognize the event."
Previous
Reply
Map
View

Click here to load this message in the networking platform