>David,
>
>AFAIK, there is no documentation about specifically what happens inside the VFP BaseClass event methods. Frankly, there aren't that many that do anything observable at all, and those that do something are 99.99% correct in what they do and when they do it.
It's not what happens inside that counts. It's only observable behavior I care about. I'm sure that what they do makes perfect sense and is consistent and correct, but I want to know exactly what that is...all of it.
Here's an example of what I mean.
If you read about the event model in the programmer's guide it tells you that when fires just before got focus and valid fires just before lost focus. Fine. Makes sense. When let's you decide if you really want to allow focus and valid let's you decide if you really want to allow losing it.
Now try clicking on a command button that already has focus. The event sequence is: click,valid,when ?? huh? why when? I've already got focus?? Well, I'm sure there's a good reason based on some unwritten paradigm, but it doesn't follow the pattern and it got me into trouble.
My code failed because it made some assumptions based on when only occuring if a control does not already have the focus. The description of the when event says 'occurs before a control receives the focus'. Nothing I could find describing commandbuttons countermands this.
So I banged around with the debugger and finally figured out what was going wrong and worked around it.
Firing sequences are external behavior that should absolutely be well defined and documented because events do stuff!
Never said they did the wrong stuff! Just want to know
All the stuff they do!
VFP wants us to use baseclasses as black boxes. Fine. They still ought to tell me every damn thing thing those boxes can do to any object (using the word in its generic sense) whose state effects the behavior of my program.
>
>If you have some specific issues about getting something to work this is the best place to get an answer. The FoxForum.com Wiki would be the best place to "assemble" knowledge on the topic.
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum