Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling _SCREEN
Message
From
17/01/2003 05:59:18
 
 
To
17/01/2003 05:40:23
Lee Hockley
Sherwood International
London, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00742462
Message ID:
00742794
Views:
17
Lee,

A top level form is always modeless regardless of the WindowType setting. Being a modeless form the program will continue execution of your code directly after the oForm.Show statement. What you will need to do is include a READ EVENTS statement after that to tell VFP to process events. CLEAR EVENTS will clear the READ EVENTS. See the VFP help for more info.

Also check out FAQ #7557.


>I have found the property to specify the form to be top level.
>
>To add, the form has no code in the .Init method as the processing is executed via a .timer member object. But the problem is the form passes straight through without waiting for the timer to kick in or allow the user to press the cmdCancel button.
>
>I have the following settings:
>
>oForm.ShowWindow = 2
>oForm.WindowType = Modal (which looks like it is overrided by ShowWindow)
>_SCREEN.Visible = .f. (in the main.prg)
>SCREEN = OFF (in the config.fpw)
>
>And the form is intantiated using oForm.Show(1).
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform