>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
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