TMenuItem.GetParentMenu function
Gets the parent menu to which this menu item belongs.
Declaration
function GetParentMenu: TMenu; virtualFunction result
Menu for the top-most unparented menu item in the hierarchy, or Nil when not found.
Description
GetParentMenu is a
TMenu function used to get the menu
where the menu item or its Parent menu item is located. GetParentMenu visits
each of the Parent menu items. When an item is located without an assigned
Parent, its Menu property is used as the return value for the method. The
return value is
Nil if all menu items in the hierarchy have a Parent
menu item.
GetParentMenu is used in methods like GetIsRightToLeft,
GetImageList, DoDrawItem, and DoMeasureItem.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
