Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal form not being Modal in VFP 6
Message
De
04/01/2000 14:08:05
 
 
À
04/01/2000 14:04:36
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00311883
Message ID:
00312616
Vues:
48
>Figured it out. Here's how to duplicate it:
>
>Create a Project with 2 forms - Form1 and Form2
>Form1
>Init() - HIDE WINDOW SCREEN
>Destroy() - SHOW WINDOW SCREEN
>BorderStyle - 2 Fixed Dialog
>ShowWindow - 2 As Top Level
>WindowType - 0 Modeless
>CommandButton -
>CLick() -
>HIDE WINDOW form1
>DO FORM form2
>SHOW WINDOW form1
>
>Form2
>BorderStyle - 2 Fixed Dialog
>Desktop - .T.
>ShowWindow - 1 In Top Level
>WindowType - 1 Modal
>
>Build the App and run it. Form2 will NOT behave like a modal form. If you remove the "HIDE WINDOW form1" from before the "DO FORM form2" in the Click() it WILL behave like a modal form. Go figure. Thanks for your help, the suggestion to build a simple app is what helped me find the problem. I can work with this, although I would rather hide the first screen.
>
>Shane

Maybe you could just "hide" the first screen by moving it out of range of the visual desktop? Like -1000,-1000 or something like that for it's Top/Left properties.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform