Method XbpMenuBar():destroy() Foundation

Releases the system resources of the XbpMenuBar object.

:destroy() --> self

This method returns the object executing the method (self).


The method :destroy() is part of the life cycle of an Xbase Part and releases the system resources requested using the method :create(). The XbpMenuBar object becomes non-operational after this method has been called. However, the object remains in existence and can later request system resources again using :create().

When an XbpMenuBar object has children, this method implicitly calls the :destroy() method of each Xbase Part contained in the :childList() (see :childList() in XbpPartHandler()).


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.