Class tmenuitem
Unit
Declaration
type tmenuitem = class(teventpersistent, iactionlink, imenuitem, iimagelistinfo, iassistiveclientmenu)
Description
No description available, ancestor teventpersistent description follows
No description available, ancestor tlinkedpersistent description follows
No description available, ancestor tnullinterfacedpersistent description follows
No description available, ancestor tvirtualpersistent description follows
Hierarchy
- TObject
- tpersistent
- tvirtualpersistent
- tnullinterfacedpersistent
- tlinkedpersistent
- teventpersistent
- tmenuitem
Overview
Fields
finfo: actioninfoty; |
|
fowner: tcustommenu; |
|
fsubmenu: tmenuitems; |
|
ffont: tmenufont; |
|
ffontactive: tmenufontactive; |
|
factiveitem: int32; |
Methods
function getactiveitem(out aitem: tmenuitem): boolean; |
|
procedure updatecaption; |
|
procedure defineproperties(filer: tfiler); override; |
|
procedure befexec; |
|
function doexec: boolean; |
|
function getiassistiveclient(): iassistiveclientmenu virtual; |
|
function getassistiveparent(): iassistiveclient; |
|
function getassistivewidget(): tobject; |
|
function getassistivename(): msestring; virtual; |
|
function getassistivecaption(): msestring; virtual; |
|
function getassistivetext(): msestring; virtual; |
|
function getassistivecaretindex(): int32; virtual; |
|
function getassistivehint(): msestring; virtual; |
|
function getassistiveflags(): assistiveflagsty; virtual; |
|
function getifidatalinkintf(): iifidatalink; virtual; |
|
function getassistiveselfcaption(): msestring; |
|
function getassistiveselfname(): msestring; |
|
function getassistiveselfhint(): msestring; |
|
function getactioninfopo: pactioninfoty; |
|
function loading: boolean; |
|
function shortcutseparator: msechar; |
|
procedure calccaptiontext(var ainfo: actioninfoty); |
|
procedure objectevent(const sender: tobject; const event: objecteventty); override; |
|
procedure receiveevent(const event: tobjectevent); override; |
|
function internalexecute(async: boolean): boolean; |
|
function canshowhint: boolean; |
|
constructor create(const parentmenu: tmenuitem = nil; const aowner: tcustommenu = nil); reintroduce; |
|
destructor destroy; override; |
|
procedure assign(source: tpersistent); override; |
|
procedure beginload; |
|
procedure endload; |
|
procedure doupdate; |
|
procedure updatehotkeys(); |
|
procedure doshortcut(var info: keyeventinfoty); |
|
function count: integer; |
|
function hasvisibleitem: boolean; |
|
function parentmenu: tmenuitem; |
|
function actualcolor: colorty; |
|
function actualcoloractive: colorty; |
|
function actualcolorglyph: colorty; |
|
function actualcolorglyphactive: colorty; |
|
function execute: boolean; |
|
function asyncexecute: boolean; |
|
function canactivate: boolean; |
|
function canshow: boolean; |
|
procedure createfont; |
|
procedure createfontactive; |
|
function itembyname(const name: string): tmenuitem; |
|
function itembynames(const names: array of string): tmenuitem; |
|
procedure deleteitembynames(const names: array of string); |
|
function index: integer; |
Properties
property owner: tcustommenu read fowner; |
|
property onchange: menuitemeventty read fonchange write fonchange; |
|
property items[constindex:integer]: tmenuitem read getitems
write setitems; |
|
property checkedtag: integer read getcheckedtag write setcheckedtag; |
|
property checked: boolean read getchecked write setchecked; |
|
property enabled: boolean read getenabled write setenabled; |
|
property visible: boolean read getvisible write setvisible; |
|
property tagpo: pointer read finfo.tagpo write finfo.tagpo; |
|
property tagpointer: pointer read finfo.tagpo write finfo.tagpo; deprecated 'Use tagpo instead'; |
|
property shortcuts: shortcutarty read finfo.shortcut write setshortcuts; |
|
property shortcuts1: shortcutarty read finfo.shortcut1 write setshortcuts1; |
|
property action: tcustomaction read finfo.action write setaction; |
|
property submenu: tmenuitems read getsubmenu write setsubmenu; |
|
property caption: captionty read finfo.captiontext write setcaption
stored iscaptionstored; |
|
property hint: msestring read finfo.hint write sethint stored ishintstored; |
|
property name: string read fname write fname; |
|
property state: actionstatesty read finfo.state write setstate
stored isstatestored default []; |
|
property options: menuactionoptionsty read finfo.options
write setoptions default defaultmenuactoptions; |
|
property shortcut: shortcutty read getshortcut write setshortcut
stored false default 0; |
|
property shortcut1: shortcutty read getshortcut1 write setshortcut1
stored false default 0; |
|
property tag: integer read finfo.tag write settag stored istagstored default 0; |
|
property group: integer read finfo.group write setgroup
stored isgroupstored default 0; |
|
property imagelist: timagelist read getimagelist write setimagelist
stored isimageliststored; |
|
property imagenr: imagenrty read finfo.imagenr write setimagenr
stored isimagenrstored default -1; |
|
property imagenrdisabled: imagenrty read finfo.imagenrdisabled
write setimagenrdisabled
stored isimagenrdisabledstored default -2; |
|
property color: colorty read finfo.color write setcolor
stored iscolorstored default cl_default; |
|
property coloractive: colorty read fcoloractive write setcoloractive
default cl_default; |
|
property colorglyph: colorty read finfo.colorglyph write setcolorglyph
stored iscolorglyphstored default cl_default; |
|
property colorglyphactive: colorty read fcolorglyphactive
write setcolorglyphactive default cl_default; |
|
property font: tmenufont read getfont write setfont stored isfontstored; |
|
property fontactive: tmenufontactive read getfontactive write setfontactive
stored isfontactivestored; |
|
property onexecute: notifyeventty read finfo.onexecute
write setonexecute stored isonexecutestored; |
|
property onbeforeexecute: accepteventty read finfo.onbeforeexecute
write setonbeforeexecute stored isonbeforeexecutestored; |
|
property onafterexecute: notifyeventty read finfo.onafterexecute
write setonafterexecute stored isonafterexecutestored; |
Description
Fields
finfo: actioninfoty; |
|
fowner: tcustommenu; |
|
fsubmenu: tmenuitems; |
|
ffont: tmenufont; |
|
ffontactive: tmenufontactive; |
|
factiveitem: int32; |
|
Methods
function getactiveitem(out aitem: tmenuitem): boolean; |
|
procedure updatecaption; |
|
procedure defineproperties(filer: tfiler); override; |
|
procedure befexec; |
|
function doexec: boolean; |
|
function getiassistiveclient(): iassistiveclientmenu virtual; |
|
function getassistiveparent(): iassistiveclient; |
|
function getassistivewidget(): tobject; |
|
function getassistivename(): msestring; virtual; |
|
function getassistivecaption(): msestring; virtual; |
|
function getassistivetext(): msestring; virtual; |
|
function getassistivecaretindex(): int32; virtual; |
|
function getassistivehint(): msestring; virtual; |
|
function getassistiveflags(): assistiveflagsty; virtual; |
|
function getifidatalinkintf(): iifidatalink; virtual; |
|
function getassistiveselfcaption(): msestring; |
|
function getassistiveselfname(): msestring; |
|
function getassistiveselfhint(): msestring; |
|
function getactioninfopo: pactioninfoty; |
|
function loading: boolean; |
|
function shortcutseparator: msechar; |
|
procedure calccaptiontext(var ainfo: actioninfoty); |
|
procedure objectevent(const sender: tobject; const event: objecteventty); override; |
|
procedure receiveevent(const event: tobjectevent); override; |
|
function internalexecute(async: boolean): boolean; |
|
function canshowhint: boolean; |
|
constructor create(const parentmenu: tmenuitem = nil; const aowner: tcustommenu = nil); reintroduce; |
|
destructor destroy; override; |
|
procedure assign(source: tpersistent); override; |
|
procedure beginload; |
|
procedure endload; |
|
procedure doupdate; |
|
procedure updatehotkeys(); |
|
procedure doshortcut(var info: keyeventinfoty); |
|
function count: integer; |
|
function hasvisibleitem: boolean; |
|
function parentmenu: tmenuitem; |
|
function actualcolor: colorty; |
|
function actualcoloractive: colorty; |
|
function actualcolorglyph: colorty; |
|
function actualcolorglyphactive: colorty; |
|
function execute: boolean; |
|
function asyncexecute: boolean; |
|
function canactivate: boolean; |
|
function canshow: boolean; |
|
procedure createfont; |
|
procedure createfontactive; |
|
function itembyname(const name: string): tmenuitem; |
|
function itembynames(const names: array of string): tmenuitem; |
|
procedure deleteitembynames(const names: array of string); |
|
function index: integer; |
|
Properties
property owner: tcustommenu read fowner; |
|
property onchange: menuitemeventty read fonchange write fonchange; |
|
property items[constindex:integer]: tmenuitem read getitems
write setitems; |
|
property checkedtag: integer read getcheckedtag write setcheckedtag; |
|
property checked: boolean read getchecked write setchecked; |
|
property enabled: boolean read getenabled write setenabled; |
|
property visible: boolean read getvisible write setvisible; |
|
property tagpo: pointer read finfo.tagpo write finfo.tagpo; |
|
property tagpointer: pointer read finfo.tagpo write finfo.tagpo; deprecated 'Use tagpo instead'; |
|
Warning: this symbol is deprecated: Use tagpo instead |
property shortcuts: shortcutarty read finfo.shortcut write setshortcuts; |
|
property shortcuts1: shortcutarty read finfo.shortcut1 write setshortcuts1; |
|
property action: tcustomaction read finfo.action write setaction; |
|
property submenu: tmenuitems read getsubmenu write setsubmenu; |
|
property caption: captionty read finfo.captiontext write setcaption
stored iscaptionstored; |
|
property hint: msestring read finfo.hint write sethint stored ishintstored; |
|
property name: string read fname write fname; |
|
property state: actionstatesty read finfo.state write setstate
stored isstatestored default []; |
|
property options: menuactionoptionsty read finfo.options
write setoptions default defaultmenuactoptions; |
|
property shortcut: shortcutty read getshortcut write setshortcut
stored false default 0; |
|
property shortcut1: shortcutty read getshortcut1 write setshortcut1
stored false default 0; |
|
property tag: integer read finfo.tag write settag stored istagstored default 0; |
|
property group: integer read finfo.group write setgroup
stored isgroupstored default 0; |
|
property imagelist: timagelist read getimagelist write setimagelist
stored isimageliststored; |
|
property imagenr: imagenrty read finfo.imagenr write setimagenr
stored isimagenrstored default -1; |
|
property imagenrdisabled: imagenrty read finfo.imagenrdisabled
write setimagenrdisabled
stored isimagenrdisabledstored default -2; |
|
property color: colorty read finfo.color write setcolor
stored iscolorstored default cl_default; |
|
property coloractive: colorty read fcoloractive write setcoloractive
default cl_default; |
|
property colorglyph: colorty read finfo.colorglyph write setcolorglyph
stored iscolorglyphstored default cl_default; |
|
property colorglyphactive: colorty read fcolorglyphactive
write setcolorglyphactive default cl_default; |
|
property font: tmenufont read getfont write setfont stored isfontstored; |
|
property fontactive: tmenufontactive read getfontactive write setfontactive
stored isfontactivestored; |
|
property onexecute: notifyeventty read finfo.onexecute
write setonexecute stored isonexecutestored; |
|
property onbeforeexecute: accepteventty read finfo.onbeforeexecute
write setonbeforeexecute stored isonbeforeexecutestored; |
|
property onafterexecute: notifyeventty read finfo.onafterexecute
write setonafterexecute stored isonafterexecutestored; |
|
Generated by PasDoc 0.16.0.