Class TMenu

DescriptionHierarchyFieldsMethodsProperties

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

Overview

Methods

Public function EntriesCount: Integer;
Public procedure Insert(Index: Integer; Value: TMenuEntry);
Public procedure Append(Value: TMenuEntry);
Public procedure EntryDelete(Index: Integer);
Public procedure EntriesDeleteAll;
Public constructor Create(const ACaption: String);
Public destructor Destroy; override;

Properties

Public property Entries[Index: Integer]: TMenuEntry read GetEntries;

Description

Methods

Public function EntriesCount: Integer;
 
Public procedure Insert(Index: Integer; Value: TMenuEntry);
 
Public procedure Append(Value: TMenuEntry);

Same as Insert(EntriesCount, Value)

Public procedure EntryDelete(Index: Integer);
 
Public procedure EntriesDeleteAll;
 
Public constructor Create(const ACaption: String);
 
Public destructor Destroy; override;
 

Properties

Public property Entries[Index: Integer]: TMenuEntry read GetEntries;

This objects OWNS his Entries. This means that when you Destroy this object, all Entries[] on the list will be also destroyed. This also means that EntryDelete frees deleted objects.


Generated by PasDoc 0.10.0 on 2008-02-25 00:00:31