Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menus in Forms
Message
De
05/12/2012 18:05:10
 
 
À
05/12/2012 06:30:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01558747
Message ID:
01558886
Vues:
107
Setting Desktop, either to .T. or .F., works perfectly.

As the Desktop property is readonly, I cannot change its value inside the form's code. So I created a variable (bDeskTop) to set this property in the definition of the form, but whatever is the value of bDeskTop (.T. or .F.) it only works in the first invocation on the form. The next time it simply ignores the value.

There is a way to workaround this situation?
 bDeskTop = .F.

 oMyForm  = CreateObj ("frmMyForm") && The form will be created inside _Screen.
 oMyForm.Show ()

 Clear Events

 bDeskTop = .T.

 oMyForm  = CreateObj ("frmMyForm")  && It doesn't change, the form is created inside _Screen again.
 oMyForm.Show ()

 Clear Events

 Define Class frmMyForm as Form
         . . . 
        Desktop = bDeskTop
         . . . 
 EndDefine
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform