Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a modal form object
Message
 
À
28/08/2000 20:40:19
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00410089
Message ID:
00410106
Vues:
14
>Hi everybody,
>I am trying to invoke a form object with these lines of code. They are in a method. When I set the WindowType property, i thought that it would make the created form modal and that it would stop the rest of the method code. However, the form is appearing for a little while (the scope of the form object variable). Is there a way to stop the calling method code ?
>
>
>of = createobject("dispResform")
>of.gridisplay.columncount = 3
>of.gridisplay.recordsource = "grdcompagnies"
>of.gridisplay.column1.controlsource = "grdcompagnies.cNom"
>of.gridisplay.column1.Header1.caption = "Nom"
>of.gridisplay.column1.width = 300
>of.gridisplay.column2.controlsource = "grdcompagnies.cAdresse"
>of.gridisplay.column2.Header1.caption = "Adresse"
>of.gridisplay.column2.width = 300
>of.gridisplay.column2.controlsource = "grdcompagnies.cVille"
>of.gridisplay.column2.Header1.caption = "Ville"
>of.gridisplay.column2.width = 300
>of.gridisplay.recordsource = "grdcompagnies"
>of.gridisplay.width = of.width
>of.WindowType = 1
>of.visible = .T.
>
>
>Thank you,
>Christian

You cannot change the WindowType setting once the window has been displayed. Instead Set WindowType = 1 in the init event of the form.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform