Class tmenuitems

Unit

Declaration

type tmenuitems = class(tpersistentarrayprop, ievent)

Description

This item has no description.

Hierarchy

Overview

Methods

Protected procedure createitem(const index: integer; var item: tpersistent); override;
Protected procedure dosizechanged; override;
Protected procedure dochange(const aindex: integer); override;
Protected procedure receiveevent(const event: tobjectevent);
Public constructor create(const aowner: tmenuitem);
Public class function getitemclasstype: persistentclassty; override;
Public function hasvisibleitem: boolean;
Public procedure sort;
Public procedure assign(source: tpersistent); override;
Public function insert(const index: integer; const aitem: tmenuitem): integer overload;
Public function insert(const index: integer; const aitems: tmenuitems): integer overload;
Public function insert(const index: integer; const captions: array of msestring; const options: array of menuactionoptionsty; const states: array of actionstatesty; const onexecutes: array of notifyeventty): integer overload;
Public procedure insertseparator(const index: integer; const aoptional: boolean = false);
Public function itembyname(const name: ansistring): tmenuitem;
Public function itemindexbyname(const name: ansistring): integer;

Properties

Public property items[index: integer]: tmenuitem read getmenuitems write setmenuitems; default;

Description

Methods

Protected procedure createitem(const index: integer; var item: tpersistent); override;

This item has no description.

Protected procedure dosizechanged; override;

This item has no description.

Protected procedure dochange(const aindex: integer); override;

This item has no description.

Protected procedure receiveevent(const event: tobjectevent);

This item has no description.

Public constructor create(const aowner: tmenuitem);

This item has no description.

Public class function getitemclasstype: persistentclassty; override;

This item has no description.

Public function hasvisibleitem: boolean;

This item has no description.

Public procedure sort;

This item has no description.

Public procedure assign(source: tpersistent); override;

This item has no description.

Public function insert(const index: integer; const aitem: tmenuitem): integer overload;

This item has no description.

Public function insert(const index: integer; const aitems: tmenuitems): integer overload;

This item has no description.

Public function insert(const index: integer; const captions: array of msestring; const options: array of menuactionoptionsty; const states: array of actionstatesty; const onexecutes: array of notifyeventty): integer overload;

This item has no description.

Public procedure insertseparator(const index: integer; const aoptional: boolean = false);

This item has no description.

Public function itembyname(const name: ansistring): tmenuitem;

Looks up an item by name, e.g. mainmenu1.menu.itembyname('mnulogin').enabled:= false;. A nested submenu item can also be reached by chained indexing, e.g. mainmenu1.menu[0][0]. tmenuitem's many state flags are kept in the set property state (type actionstatesty); add a flag with state:= state + [as_disabled] and remove it with state:= state - [as_disabled] — the commonly used flags enabled, checked and visible are also available as plain boolean properties for convenience. To share behavior and state between a menu item and other widgets (e.g. a toolbar button), use a tcustomaction instead of setting properties on each item directly.

Public function itemindexbyname(const name: ansistring): integer;

This item has no description.

Properties

Public property items[index: integer]: tmenuitem read getmenuitems write setmenuitems; default;

This item has no description.


Generated by PasDoc 1.0.4.