Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OMainForm does not get focus on startup
Message
De
26/07/2004 04:05:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
OMainForm does not get focus on startup
Divers
Thread ID:
00927841
Message ID:
00927841
Vues:
63
Screen = OFF and the forms run in the desktop.

Unless VFP itself or another (any) VFP app like MyApp.exe is already running,
the very first form does not get the focus until clicked on by the user.

The menu that is being called in MainMenuForm's activate method is a top-level menu with NOWAIT and afaik there are no wait states before READ EVENTS.

Any ideas are welcome.
* Main prg
PUSH MENU _MSYSMENU

oMainMenuForm = NEWOBJECT('MainMenuForm','SosForms',NULL,gcOwner,'Invoicing System  -  Main Screen','',gcVersion,gcBuildDate,lcLogString)

WITH oMainMenuForm
	.VISIBLE    = .T.
	.SHOW
ENDWITH

READ EVENTS
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform