Class TMenuEntry

Unit

Declaration

type TMenuEntry = class(TObject)

Description

A basic class representing basic menu building block. This can be a separator, clickable menu item or something that expands to submenu.

Hierarchy

  • TObject
  • TMenuEntry

Overview

Methods

Protected procedure ClearHandles; virtual;
Public procedure MenuUpdateBegin;
Public procedure MenuUpdateEnd;

Properties

Public property ParentMenu: TMenu read FParentMenu;
Public property ParentMenuPosition: Cardinal read FParentMenuPosition;

Description

Methods

Protected procedure ClearHandles; virtual;

Recursively clear TMenuEntry.Handle values.

Public procedure MenuUpdateBegin;

For optimization purposes, you may surround many menu changes inside MenuUpdateBegin + MenuUpdateEnd calls. Make sure window is not closed / opened between them.

Public procedure MenuUpdateEnd;
 

Properties

Public property ParentMenu: TMenu read FParentMenu;

This is the parent TMenu that has this item in it's Entries list. Nil is there is not parent menu yet (e.g. because it's not assigned yet, or because this is the main menu).

Public property ParentMenuPosition: Cardinal read FParentMenuPosition;

Position on ParentMenu. Indexed from 0, so ParentMenu.Entries[ParentMenuPosition] should be always equal to Self (as long as ParentMenu <> Nil.


Generated by PasDoc 0.16.0.