Quote:
Originally Posted by diablo_sv21
Yeah I'm not aware of a method you can have called for when the plugin is closed if that button is the default one built into CF. Your best bet is having your own button. Especially when that button isn't the only way you can make your plugin disappear.
I think if you monitor the cfplugin.Visible variable you might be able to detect it, but that is just a theory, not something I have tried/needed to do.
|
yourplugin_visiblechanged event is what you are looking for. If this.visible is true, then you're in your plugin. If it's false, you're somewhere else and you can execute whatever code you desire.
A good place to do cleanup code, stop timers, save data to disk..whatever.
Cheers,
VegasGuy55