Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal form lost focus and die
Message
De
03/03/2003 16:32:42
 
 
À
03/03/2003 16:11:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00760474
Message ID:
00760531
Vues:
14
If form2 is modal, you can't set focus off of it to another form...

>
>Simple example :
>
>------------
>Create a two forms:
>
>1) Form1 with button and timer
>
>Command1.Click event :
> ThisForm.Timer1.Interval = 1000
> ThisForm.Timer1.Enabled = .T. // Start the Timer
> DO FORM Form2 // Call second form
>
>Timer1.OnTimer event :
> ThisForm.Command1.SetFocus() // Set focus back to form1
>
>2) Form2 with WindowType = 1 //Modal
>
>-------------
>
>Now Run the Form1 and press button.
>In one second - Bye-Bye, FoxPro!
>
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform