In my toplevelform (osdi) queryunload method:
if this.releasetype = 1 && close box
if oapp.ineditmode or oapp.inaddmode
messagebox("Can not Exit RealTrac 5.0 while in Edit or Add mode", ,64,oApp.cAppName)
nodefault
else
hold_return = oapp.exitapp() && clean up routine
if !hold_return
nodefault
endif
endif
endif
this seems to be working for my close button on the titlebar.
>You need an ON SHUTDOWN handler to know when the user has clicked the Close button on the app titlebar.
>>Programming in VFP 5.0. Have not noticed a need for ON SHUTDOWN, but just ran across it in the help. I control the exiting from my app, I think. What does ON SHUTDOWN do for you?
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