Castle Game Engine: CastleWindow: Class TMenuEntry

# Class TMenuEntry
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleWindow ## 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
| `procedure ClearHandles; virtual;`
| `procedure MenuUpdateBegin;`
| `procedure MenuUpdateEnd;`
### Properties
| `property ParentMenu: TMenu read FParentMenu;`
| `property ParentMenuPosition: Cardinal read FParentMenuPosition;`
## Description ### Methods
| `procedure ClearHandles; virtual;`
Recursively clear TMenuEntry.Handle values.
| `procedure MenuUpdateBegin;`
For optimization purposes, you may surround many menu changes inside `MenuUpdateBegin` + MenuUpdateEnd calls. Make sure window is not closed / opened between them.
| `procedure MenuUpdateEnd;`
### Properties
| `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).
| `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.13.0 on 2015-06-15 04:43:13