Sign in Join
FPDoc Onlineexperiment

TMenuItem.GetParentComponent function

Member of TMenuItempublicIn unit Menus

Gets the menu for the Parent component when available.

Declaration

pascal
function GetParentComponent: TComponent; override

Function result

Parent menu item or menu for the current class instance.

Description

Overridden to ensure that the TMenu instance for the Parent menu item is used (when assigned). If not assigned, the value in Parent is returned. GetParentComponent does not call the inherited method.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.