Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form is not active on the second call
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01249847
Message ID:
01249948
Vues:
19
>Hi Naomi,
>
>>I'm not sure what's causing this strange problem and how to remedy it.
>
>have you verified that the Show method is indeed being called the second time?

Christof,

I called the form 5 times from the menu. Just opened the form and closed it. The 5th time it came without a focus :(

I tested some other forms in this application and I can not reproduce the problem. Other forms don't have a pageframe on them.

This form has a pageframe and the following code in form's Activate method:

DODEFAULT()
IF thisform.pgfProblemsResolutions.Activepage = 0 && First time
thisform.pgfProblemsResolutions.ActivePage = 1
endif

There is also code in the Activate method of the page. The form appears with a focus on the grid.

One more bit of information related to the form - it has a timer used in order to create tooltips for the grid. Could it be that this class cause the unwanted behavior?

Thanks a lot again.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform