Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set focus to exe
Message
 
 
À
16/03/2004 12:55:59
Charlie Hancock
California Dept of Public Health
Richmond, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00886769
Message ID:
00886793
Vues:
18
See Re: SetForegroundWindow behavior frustrating Message #786656

>I'm calling a VFP 8.0 executable from within a FoxPro 2.6 application, using the command:
>
> RUN /N1 Foo.exe
>
>I want the called exe to act as much like a modal form as possible. The exe consists of a Main.prg and a single form. The Main.prg says:
>   Application.Visible = .F.
>   DO FORM Foo.scx
>   READ EVENTS
>
>The form has these properties set:
>
>   AlwaysOnTop = .T.
>   ShowWindow = 2  && top-level form
>   WindowType = 1  && modal
>When the exe is run, the form appears on top of the FP 2.6 program as I intend. The problem is that focus immediately goes back to the FP 2.6 program, even though the called VFP form is on top. How do I get the focus automatically to the VFP form, without the user having to click on it?
>
>Thanks in advance!
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform