Garry's Mod Wiki

DFrame:OnClose

  DFrame:OnClose()

Description

Called when the DFrame is closed with DFrame:Close. This applies when the close button in the DFrame's control box is clicked.

This function does nothing and is safe to override.

This is not called when the DFrame is removed with Panel:Remove, see PANEL:OnRemove for that.