Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making top level form active
Message
De
01/04/2003 18:10:31
 
 
À
21/03/2003 14:45:46
Larry Huisingh
Lockheed Martin Information Technology
Richland, Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00768739
Message ID:
00772737
Vues:
23
>I have a single form called from a PRG. It is set up as a top level form. I also set _SCREEN.Visible=.f. at the top of my PRG. The problem is that when I run the executable I create I see the form (with no desktop, as desired) but I have to click on the screen to make it active. I have mostly done FPW apps so I'm not that fluent in the basics of VFP 6. What do I need to add to make the form active?

i have not read the entire thread, but maybe the following helps. i use this in the activate method of my login form to ensure it has the focus as the user types their password:
DECLARE INTEGER SetForegroundWindow IN USER32 INTEGER
DECLARE INTEGER FindWindow IN USER32 STRING @ , STRING @
lnHWND=FindWindow(0, _Screen.Caption)
IF lnHWND>0
	SetForegroundWindow(lnHWND)
ENDIF
CLEAR DLLS
hope this helps
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform