Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change windowtype to modal during runtime
Message
De
21/07/2004 05:15:14
 
 
À
21/07/2004 04:59:33
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00926478
Message ID:
00926482
Vues:
12
>Hi all,
>I've a form which has its windowtype property set to 0-Modeless in design time.
>However, I would like to have the ability to change it to run as modal during runtime.
>I've tried "do form form_name name oform" and used oform.windowtype=1 to change the property during run time. Got a message saying this property is readonly during runtime.
>Anyway to work around this without having to create a duplicate of the whole thing with the windowtype changed?
>Thanks in advance.
>
>Yau

hi Yau,

you can set the WindowType in the init() of the called form. You'll need to pass a parameter to the form though
do form form_name with 1

&& form_name init()
lparameters wt

if( !empty(m.wt) )
	this.WindowType = m.wt
endif
You can put the init() in your form's baseclass
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform