Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal form loses focus to calling form and app stops
Message
De
10/08/2005 01:26:47
 
 
À
10/06/2005 12:13:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01021703
Message ID:
01039777
Vues:
21
Thanks for the tip Marcia. This one had me thinking that I was seeing things when it happened to me. Fortunately there is a solution.

Bernard

>.... control doesn't return to what should be the active batch control form - focus drops to the form behind it (the control centre form the batch form was called from). The background form can be moved around, but nothing executes like button pushes etc, and the foreground form that should have the focus decides to play dead.
>
>This code in the form class's Activate that your modal forms are based on - if you are using base classes (and if you are -tsk! tsk! tsk!), this must go in the activate of each form:
>
>
>IF This.WindowType = 1  && Modal
>  This.AlwaysOnTop = .T.
>  This.AlwaysOnTop = .F.
>ENDIF
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform