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:
01250102
Vues:
26
Hi Naomi,

>IF thisform.pgfProblemsResolutions.Activepage = 0 && First time

You need to fix this in the designer, not at runtime. Open the form and navigate to the pageframe. The ActivePage property is probably 1 in non-bold. Press enter to make it bold and force VFP to store the property.

As for the behavior... I've seen weird things going on when the form became visible before Init completes. This happens when you call SetFocus of an object. That's why our base class has code in the SetFocus method that validates the calling stack for any Init method and issues a warning in this case.

Another candidate for causing problems is WAIT WINDOW while the form is not visible. Because the WAIT WINDOW is the first visible window, some Windows code treats this as the main window and sets the focus to this window. When the WAIT WINDOW is closed, the focus has already been transfered. hence, the actual form is not activated any more.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform