Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>I have a parent form, and in that form I can open a child form.
>In the child form the property ShowWindow=1, and in the parent form the property ShowWindow=2. This works fine, >but... when ShowWindow=1 in the parent form (top level), the form can be anywhere on the Windows desktop.
>If I minimize or move the main VFP window, the parent form remain visible on the same place.
>I want the parent form contained inside the main Visual FoxPro window(, and of course, the child form contained >inside the parent form).
To have the first form in the VFP screen, you have to set the ShowWindow property to 0 (In-screen). Then the child form does not know that it is a "child" of the first screen -- it will default to the In-screen mode even though ShowWindow=1 since there is not a Top-level form. Basically, you cannot have a child have a child form.
To get around this, you might try a hack on the _VFP events for Resize or Move (via BindEvents) to control the Top-level form.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement