Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a window in the Form's Load Event
Message
From
31/07/2002 14:26:45
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
30/07/2002 15:29:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00684137
Message ID:
00684626
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform