Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top-level from is not visible
Message
From
06/10/2003 09:12:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Top-level from is not visible
Miscellaneous
Thread ID:
00835329
Message ID:
00835329
Views:
47
I use SDI concept in my application. I have one form as Top-Level form, and the rest forms are "In Top-Level" forms.

To launch the application I use simple "main" routine, which does three things - eliminates VFP screen, launches Top-level form and finally - launches In Top-level form:

_Screen.Visible=.f.
do from frmParent && my Top-Level form
do form frmChild && my In Top-level form
read events

Top-Level form frmParent has a button, which can fire child In Top-Level form. But when app starts, I want child form to be displayed automatically. Now the fun begins:

1. When the app starts I can ONLY see the child form, Top level form simply becomes invisible
2. If I click by mouse somewhere, where Top-Level form supposed to be - it is appears and functioning normally.

I tried another approach - to launch just a parent form and fire the child form clicking the button on the parent form. Everything is OK: both forms are visible and functioning as they should.

Both forms have no border and titlebar, childform has a grid. Problem appears in VFP7 and VFP8.

Please, can anyone explain, why top-level (parent) form is invisible when I launch child form programmatically???

Thank you!
Next
Reply
Map
View

Click here to load this message in the networking platform