General information
Category:
Forms & Form designer
Title:
Top-level from is not visible
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only