Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wait window invisible
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00211437
Message ID:
00211513
Views:
85
>>Hi All,
>>
>>I have a little problem. I'd like to show my users some wait windows every now and then. I use a Top level form as my main form in this application and _screen is hidden. Wait windows don't show up in this setup. What I did to make it work is show _screen with a top = -2000 and the Wait windows suddenly show up. But this way there is a second button on the taskbar. Why don't wait windows show up on top level forms when _Screen is hidden and how do I solve this without showing _Screen (not even on the taskbar).
>
>Unfortunately, WAIT WINDOW is tied to the VFP main screen; if the VFP main screen's ShowWindow state is hidden, the WAIT WINDOW system message window doesn't appear (it's somewhat the same problem as the Report Preview problem.)
>
>Take a look at the VFP docs - the on-line docs for both VFP5 and VFP6 state explicitly that if the WINDOW clause is included in the WAIT statement, the system message window appears in the main Visual FoxPro window. IOW, the behavior is documented, even if it's not what you want it to do.
>
>You'll have to use a form or MESSAGEBOX() rather than WAIT WINDOW if you don't want the main VFP window to appear in the taskbar.


I don't understand why you are having the problem, but I created a sample to verify the case... Here is what I did.

Create new project.
create new program... in it I have the following
  application.visible = .f.
  do form testform1
  read events
  application.visible = .t.
Then I created a single form with two command buttons
The first button issues a wait window 'testing' message in the click() event
the second button has the following in click() event
  clear events
  Thisform.release()
The only property I changed in the form definition is
ShowWindow = 2 (AS TOP LEVEL FORM)

When I built the exe and ran it, the VFP _screen was gone, and only the test form visible. Clicking on the message button showed a valid wait window...

I hope this simple solution may help in some way...
Previous
Reply
Map
View

Click here to load this message in the networking platform