Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keeping a non modal form active.
Message
De
18/06/1998 03:24:35
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00108964
Message ID:
00109405
Vues:
36
>Carlos,
>
>Is there a reason to make the first form modal? Almost all of my forms are modeless. Sometimes a child modal form will be launched when a subtask needs to be finished before they can come back to the parent form but that doesn't happen very often inside my apps.

David,
When the user wants to print a report, i ask him few tings:
- the report file (in each form i have several different reports)
- the destination of the report (Preview, Printer, File or modify report)
- If he selects 'printer' i allow him to select which one printer
- if he selects 'file' i allow hin to select the destination file path and name
- in all the 3 first options, i allow him to select the 'scope' of the report: all, next 'x' records etc.

All these options that user can select are in my form class 'pantimpr'. Always when user wanna print a report i issue:
modo_salida = createobject("pantimpr")
modo_salida.show(1) && modal
and then i continue with the report code...

As far as i know, the form class 'pantimpr' must to be a modal one, cause i don't want the code continue before selecting options.

All works fine but, when the first form is a modal one too, the child form appears, all seems to be right but then if the user selects 'modify report' the command to modify the report dosen't does anything (or close so quickly that i can't see it.

I've tested to convert the first form to non-modal: all works fine.
I've tested to do not create the second one setting manually the options in code: all works fine

What's happening ?
Why creating a modal form from a modal one the modify report doesn't works ?
I've asked this question in the UT a lot but noone seems to understand, or to know the solution or to have seen this behavior of VFP.

What can i do?

You said: '...Almost all of my forms are modeless...'

And private datasession?
You have not a process in which you don't want the user access menu?
You have not a process in which you need exclusive acces to some tables?

How do you allows user selects destination of the report and other options?
Must i change my workaround of this?

Any help would be appreciated. I'm absolutely lost.
Carlos.
Saludos,
A.G.P.
---------
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform