Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening a window in the Form's Load Event
Message
De
31/07/2002 14:26:45
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
 
 
À
30/07/2002 15:29:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00684137
Message ID:
00684626
Vues:
12
Here's one way that works; define the WIndow prior to running the Form and give it an object reference;
DEFINE WINDOW WindowName1;
  FROM 10, 20 TO 35, 100;
  IN SCREEN;
  NAME HelloWindow;
  CLOSE ZOOM

HelloWindow.AlwaysonTop = .T.
Then, in the Form's LOAD event:
HelloWindow.Show()
Then, Release it whenever you desire...

HTH,

-Irv.


>I need to display a message to the user when they first start up a form to tell them to wait and that the program is selecting data. I tried to do it with an existing window called 'Activity' that was already defined early on in the main program. The window is centered on the screen and I normally just do ?'Selecting data - Please wait' so they know that the program is working after they select it from a menu. Then when I'm done selecting I simply close the window. But for some reason I don't understand the code is being executed in the Form's Load Event but nothing is displayed. I changed it to show it using the WAIT 'Selecting data - Please wait...' WINDOW NOWAIT command. That works. But I prefer to see my Activity window centered on the screen instead of the WAIT WINDOW. Is there some reason that I can't activate another window from within a form's load event? Any help would be greatly appreciated.
>
>Jim White
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform