Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Event Tracking and Coverage Profiler
Message
 
 
À
10/08/2001 13:24:09
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00541740
Message ID:
00542898
Vues:
15
Hi!

Good to know you solved this problem. Indeed, Page frames are not so simple as you mentioned. There are a couple of other problems related to the focus and sequence of events firing when working with pages wich contain grids. Feel free to ask any questions...

>Hey Vlad,
>
>I'm going to post a version of the following in other threads I've started recently as it addresses those issues as well.
>
>The solution to the combobox/focus problem had a lot to do with a very simple thing. As I broke it apart and started doing some research I found a very obvious reason that it wouldn't hold focus. The Enabled was initially set to False and only when it was refreshed would it be set to True and accept the focus. Since it was on a different page, and ThisForm.Refresh will only affect the current active page, the combobox.Enabled was not reset to True until that page was refreshed. This also expains why there was a difference when the form ran the first time as opposed to any subsequent time. It also reacted differently depending on whether ActivePage or SetFocus was called first. By my recent experience, ActivePage should be set first.
>
>Thank you all for your input. I'm afraid I made the problem appear much more complex than it was and in the process throwing you all off the scent...
>
>Bottom line: Make sure an object is Enabled before setting focus to it.
>
>Renoir
>
>>Hi!
>>
>>Show me the code! I need code of both form & class. Coverage or events tracking have little help here when you do not know exactly how events sequence look like in normal case. I do not remember it too, so I prefer to look to the code to try to find what can cause it.
>>
>>>Hey Vlad,
>>>
>>>I purposely did not include the actual problem as I have posted much recently related to it. See Message #540850 and Thread #540072 for the most relevant ones related to this, but I have also had a number of other posts recently that were somewhat related though not as directly as these. What I need help with at the moment is why events would fire one time and not others under the same conditions while using the same user input. The issue has not been resolved through simple discussion in the forum yet and I believe the only way is for someone to actually see the log results and possibly the form.
>>>
>>>Renoir
>>>
>>>>Hi!
>>>>
>>>>Can you describe what is the PROBLEM? I do not think you want to prove that VFP have a bug - be sure it have it :) What desperate you?
>>>>
>>>>>Ok. I need someone who would be willing to look at four text files and explain to me why performing the exact same actions would result in different events firing the initial time compared to each subsequent time. The four files are two log files from the Event Tracking and two from the Coverage Profiler. I only ran them for the portion of the app for which I'm having the problem so there are only 116 lines max in the largest file. You've seen various posts of mine recently regarding a combobox and focus issues and this is related to that. I just don't want to burden the forum with more of the same. I will post back the results when known.
>>>>>
>>>>>I will send files and details via email to anyone who is interested in helping this lost developer find his way through this very project-crippling issue. Sending a working version of the app would not be possible (size, security, etc) but the form and appropriate class library could be.
>>>>>
>>>>>I know you can't see the weary desperation in my eyes, but trust me, it's there...
>>>>>
>>>>>Regards, Renoir
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform