Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Nadya:
If both forms use the same datasession and they require different
(whatever) settings, chaging the settings is not likely to be a good
solution unless the second form is modal.
If the second form is modal, you can always add a Custom object that saves
the current settings in its Init event and restores them in its Destroy event.
The sitaution is a little more complex if you are instantiation forms from
classes because you may want to restore the settings as soon as the second
form's Hide method is called.
If both forms are modeless, you have to consider what will happen if the user
switches back and forth between the forms and perform actions in no logical (to
you) order...
A possible solution may be found by examining whether it is the form or some of
its methods that require different settings. If it's only the methods that
require different settings, you can always follow Dragan's advice and
save/restore settings in the methods themselves.
Daniel
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement