Class TMenu
Unit
Declaration
type TMenu = class(TMenuEntryWithCaption)
Description
TMenuEntry that contains a list of menu entries. This is the basic class to represent a drop-down menu, a submenu etc.
Hierarchy
- TObject
- TMenuEntry
- TMenuEntryWithCaption
- TMenu
Overview
Methods
![]() |
procedure ClearHandles; override; |
![]() |
constructor Create(const ACaption: String); |
![]() |
destructor Destroy; override; |
![]() |
function Count: Integer; |
![]() |
procedure Insert(Index: Integer; Value: TMenuEntry); |
![]() |
procedure Append(Value: TMenuEntry); |
![]() |
procedure Delete(Index: Integer); |
![]() |
procedure Clear; |
![]() |
function EntriesCount: Integer; deprecated; |
![]() |
procedure EntryDelete(Index: Integer); deprecated; |
![]() |
procedure EntriesDeleteAll; deprecated; |
![]() |
procedure DeleteAll; |
![]() |
function AppendRadioGroup(const Items: array of string; BaseIntData: Cardinal; SelectedIndex: Integer; AAutoCheckedToggle: boolean; QuoteCaption: boolean = true): TMenuItemRadioGroup; |
Properties
![]() |
property Entries [Index:Integer]: TMenuEntry read GetEntries; |
Description
Methods
![]() |
procedure ClearHandles; override; |
![]() |
constructor Create(const ACaption: String); |
![]() |
destructor Destroy; override; |
![]() |
function Count: Integer; |
![]() |
procedure Insert(Index: Integer; Value: TMenuEntry); |
![]() |
procedure Append(Value: TMenuEntry); |
Add at the end. Same as Insert(Count, Value). |
![]() |
procedure Delete(Index: Integer); |
![]() |
procedure Clear; |
![]() |
function EntriesCount: Integer; deprecated; |
Warning: this symbol is deprecated. Deprecated name for Count. |
![]() |
procedure EntryDelete(Index: Integer); deprecated; |
Warning: this symbol is deprecated. Deprecated name for Delete. |
![]() |
procedure EntriesDeleteAll; deprecated; |
Warning: this symbol is deprecated. Deprecated name for Clear. |
![]() |
procedure DeleteAll; |
Warning: this symbol is deprecated. Deprecated name for Clear. |
![]() |
function AppendRadioGroup(const Items: array of string; BaseIntData: Cardinal; SelectedIndex: Integer; AAutoCheckedToggle: boolean; QuoteCaption: boolean = true): TMenuItemRadioGroup; |
Append a number of radio menu items. This is a comfortable shortcut for an often task of adding many TMenuItemRadio items that create a new radio group (TMenuItemRadioGroup). For each item of Items list, we'll add a new TMenuItemRadio instance.
We return the newly created TMenuItemRadioGroup. If Items is empty, this does nothing and returns |
Properties
![]() |
property Entries [Index:Integer]: TMenuEntry read GetEntries; |
Items (entries) on the menu. Items are owned by this menu instance (are automatically freed at destruction, at Delete and such). |
Generated by PasDoc 0.16.0.