[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Menus' (#lcl)

TMenuItem.Destroy

Destructor for the class instance.

Declaration

Source position: menus.pp line 255

public destructor TMenuItem.Destroy; override;

Description

Destroy is the overridden destructor for the class instance. Destroy ensures that resources allocated for the class instance are freed. This includes freeing the Bitmap, Handle, and any Items or Merged items for the menu item. It also removes itself from the Items for the Parent menu or menu item. Destroy calls the inherited destructor prior to exit.

See also

TComponent.Destroy


Version 3.2 Generated 2024-02-25 Home