Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More MODAL forms
Message
 
À
08/07/1998 14:37:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00115397
Message ID:
00115411
Vues:
16
>>This should be simple. I've tracked it down to the WindowType property. I have a form (created through AddObject) that, when Modeless, can be closed using the close button on the title bar in the upper right hand corner of the form. When the form is Modal, I click on the close button and it just turns grey and the screen is still displayed and active.
>>
>>Can you close a modal form with the close button? Is there an event that is firing which needs a "thisform.release"?
>>
>>Thanks,
>>
>>Lee
>
>Firstly, it's no problem to close modal form. You could try to 'strengthen' code by Release Thisform. In some situations, the failure to close normally may indicate that some form property holds reference to some object and all these references should be set to .NULL. in Form.Destroy event.

Edward & Kamal

You both mention outstanding references and I'm not sure what you mean. More detail:

In my menu, under the reindex option I call oApp.ShowReindex(). This is the code in my application class for the ShowReindex method:

this.addobject('oReindex', 'frmReindex')

with this.oReindex
.setall('fontname', this.FontName)
.setall('fontsize', this.FontSize)
.show()
endwith

return

There are currently no "thisform.release" statements in the form that comes up. I just want the form to be modal and be able to click on the close button and have the form release.

Are you both telling me the oReindex reference is casing my form to remain displayed?

TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform