Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to run toplevel form as modal form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00792581
Message ID:
00792951
Vues:
19
One thing I should have specified in my reply--setting the _screen.visible=.F. will prevent users from going back to the main screen. Setting the top-level's form AlwaysOnTop to .T. will keep users from going to other Windows apps too. You may only need to set _screen.visible = .F. to do what you want. Experiment and see what works best for you.

>Hi Barbara. Great Thanks. It seems to work.
>
>>I haven't tried to do quite what you are trying to do. Normally, when you run a form as a top-level form, you do it with the main window hidden (put SCREEN=OFF in your CONFIG.FPW). All other forms within your app then run as "in top-level form", and you never seen the VFP screen.
>>
>>One thing you may want to try is to set _screen.visible = .F. right before calling the top-level form, and set the top-level form's AlwaysOnTop to .T. Just before releasing the top-level form, set _screen.visible = .T. again.
>>
>>>Hi Barbara ! Thanks.
>>>By the "main window" I mean "main window" of my program.
>>>To be maybe more precise - I have a program with outlooklike interface and I want to run a form outside this outlooklike window (like window with new email are showed in outlook) and contrary to outlook user MUST CLOSE the new form before I will let him to return to "main window" of my program.
>>>This can be done through running this form as external program (run /n command) and using (in a loop) FinWindow function of window API.
>>>I am curious if it can be done by using do form command or createobject() function.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform