Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make parent-child forms inside the main VFP window
Message
De
28/07/2006 10:41:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01140897
Message ID:
01141108
Vues:
24
>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
Fil
Voir

Click here to load this message in the networking platform