from the docs
Function FreeGadget( gadget:TGadget )
Description Remove gadget and free it's resources.
this can also be used to remove a second window thats been used as a dialog, this will (should!) free all the child gadgets providing they arent being referenced by anything else
Function FreeGadget( gadget:TGadget )
Description Remove gadget and free it's resources.
this can also be used to remove a second window thats been used as a dialog, this will (should!) free all the child gadgets providing they arent being referenced by anything else