Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form inactive on startup
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00903598
Message ID:
00903615
Views:
13
>Hi,
>
>I guess I won't ever be comfortable with the VFP screen, but usually am
>able to make things work the way they should. But now, I wonder if you can
>solve this:
>
>A form defined as
>- Always on top
>- Desktop
>- As top level form
>- Window state NORMAL
>- Window Type MODAL
>
>In the prg-file I have, among other things:
>
>_screen.Visible = .f.
>do form form1
>
>and when the form shows, I have to click on it, before it becomes active, that is, the header changes form grey to blue. What can I do to make it blue right away? Before I disabled the screen and made the form modal, it came
>on in the active state.
>
Rolf,

I've seen this problem and have a potential solution. IOW, it works for me. A couple of notes first.

One, there should be a SCREEN=OFF statement in your configuration file, normally, config.fpw.

Two, with a top-level form, you shouldn't set the Desktop property to true. This can cause problems in certain versions with the WAIT WINDOW command.

Three, setting the form to modal has no effect. Regardless of this setting, users will still be able to access other applications. This isn't a VFP problem, but rather the fact that Windows doesn't allow for system level modal forms.

Now, here's the code I use with SDI (Top-level) forms.
DO FORM myform.scx NAME oForm LINKED
oForm.Show()
oForm.Activate
READ EVENTS
Try this.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform