Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launch a modal form from a class
Message
De
10/04/1999 19:56:50
 
 
À
10/04/1999 08:29:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00207168
Message ID:
00207212
Vues:
12
>What is the syntax to launch a modal form from a class?
>I have done the following but the form does not appear. What am I missig?
>
>oModalForm = CREATEOBJECT("MyClassForm")
>
>Thanks

One of the nice things about VFP that solved a problem we had in a 2.6 production ap was being able to use the same screen/form as modal or non-modal.

By default form classes create with createobj are created with visible = .f.. To view if you can make visible true...

But, even better you can use the .Show() method of the form.

oMyFrom = createobj('MyFormClass')

oMyForm.Show() && uses the classes WindowType property
oMyForm.Show(1) && the form is shown modal
oMyForm.Show(2) && the form is non-modal.

BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform