Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odd difference in form behavior from VFP8 to VFP9
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01044826
Message ID:
01044853
Vues:
18
Paul, I don't see that behaviour. I created three forms. The 1st being modeless and the other 2 being modal. I call the modeless form from a .prg and call read events.

A button on the first (modeless) form calls the 2nd form which is modal, and a button on that form calls the 3rd form which is modal. When I close the 3rd form, the 2nd (modal) form becomes active and only on closing that does the modeless startup form become active.

Admittedly, I don't have much code in the forms, but the behaviour of the forms themselves seems to be what I would expect.

>I am working on updating a VFP8 application for VFP9. I have run into a discrepancy in behavior between the two versions.
>
>Here is the scenario. I launch a modeless form from a .prg and call read events. From a button on that form I launch a modal menu form for completing certain operations. When a certain button is pressed on that form, I launch another modal form to complete the operation.
>
>In VFP8, when I close the second modal form, focus returns to the first modal form (the operation menu).
>
>In VFP9, when I close the second modal form, focus returns to the original modeless form, which now sits on top of the modal menu form. The modal menu form is still open, however, and then things start to go haywire.
>
>I have no idea why the to two platforms perform differently, and of course there is quite a bit of code going on besides just displaying the forms.
>
>Any suggestions for figuring this one out?
>
>Thanks,
>
>Paul R. Moon
>Business Software Solutions
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform