OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Removing a Gadget From a Gadget Window

To remove a gadget from your gadget window, use the TGadgetWindow::Remove function:

virtual TGadget* Remove(TGadget& gadget);

The gadget parameter is a reference to the gadget you want to remove from the window.

The removed gadget is returned as a TGadget *. The gadget object is not deleted. Remove returns 0 if the gadget is not in the window.