Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MDI & Child Forms
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01053554
Message ID:
01053691
Vues:
14
>hi all,
>
>i am trying to get a simple MDI/Child form up and running but am stuck at the following -
>
>i have a MDI form and am loading a Child form on top of this MDI form.
>
>on the MDI form i have a "cancel" button which i want to use to close the child form (if any are open). what is the command sequence i need to code into the cancel-click event of the cancel button which is on the MDI form ?
>
>finally, what are the form properties i need to set on the MDI and the Child form ?
>
>sincere thanks in advance.

Is there any reason why you're not using the main VFP window? I would because it means that there's one less object to maintain. Further, in it, I can have a menu option that will close all open forms, if there are any with something like
LOCAL lnlast, lni
lnlast = _SCREEN.Forms.Count
FOR lni = lnlast TO 1 STEP -1
  _SCREEN.Forms(lni).Release
NEXT
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform