Class tcustommenu

Unit

Declaration

type tcustommenu = class(tmsecomponent)

Description

No description available, ancestor tmsecomponent description follows

Hierarchy

Overview

Fields

Protected ftransientfor: twidget;
Protected fmouseinfopo: pmouseeventinfoty;

Methods

Protected procedure settransientfor(const awidget: twidget);
Protected procedure doidle(var again: boolean);
Protected procedure readstate(reader: treader); override;
Protected procedure loaded; override;
Protected procedure setexecitem(const avalue: tmenuitem);
Protected procedure assigntemplate(const source: tcustommenu);
Protected procedure templateevent(const sender: tobject; const event: objecteventty; var template: menutemplatety);
Protected procedure objectevent(const sender: tobject; const event: objecteventty); override;
Protected function gettemplatefont(const sender: tmenuitem): tmenufont; virtual;
Protected function gettemplatefontactive( const sender: tmenuitem): tmenufontactive; virtual;
Public constructor create(aowner: tcomponent); overload; override;
Public constructor createtransient(const atransientfor: twidget; const amouseinfopo: pmouseeventinfoty); overload;
Public destructor destroy; override;
Public function checkexec: boolean;
Public procedure assign(source: tpersistent); override;
Public procedure doshortcut(var info: keyeventinfoty);
Public procedure doupdate;
Public procedure updatehotkeys();
Public function count: integer;
Public function transientfor: twidget;
Public function mouseinfopo: pmouseeventinfoty;
Public function shortcutseparator: msechar;
Public class function getshortcutseparator(const ainstance: tcustommenu): msechar;

Properties

Protected property execitem: tmenuitem write setexecitem;
Public property menu: tmenuitem read fmenu write setmenu;
Public property frametemplate: tframecomp read ftemplate.frame write setframetemplate;
Public property facetemplate: tfacecomp read ftemplate.face write setfacetemplate;
Public property itemframetemplate: tframecomp read ftemplate.itemframe write setitemframetemplate;
Public property itemfacetemplate: tfacecomp read ftemplate.itemface write setitemfacetemplate;
Public property itemframetemplateactive: tframecomp read ftemplate.itemframeactive write setitemframetemplateactive;
Public property itemfacetemplateactive: tfacecomp read ftemplate.itemfaceactive write setitemfacetemplateactive;
Public property separatorframetemplate: tframecomp read ftemplate.separatorframe write setseparatorframetemplate;
Public property checkboxframetemplate: tframecomp read ftemplate.checkboxframe write setcheckboxframetemplate;
Public property template: menutemplatety read ftemplate;
Public property options: menuoptionsty read foptions write setoptions default defaultmenuoptions;
Public property onupdate: menueventty read fonupdate write fonupdate;

Description

Fields

Protected ftransientfor: twidget;
 
Protected fmouseinfopo: pmouseeventinfoty;
 

Methods

Protected procedure settransientfor(const awidget: twidget);
 
Protected procedure doidle(var again: boolean);
 
Protected procedure readstate(reader: treader); override;
 
Protected procedure loaded; override;
 
Protected procedure setexecitem(const avalue: tmenuitem);
 
Protected procedure assigntemplate(const source: tcustommenu);
 
Protected procedure templateevent(const sender: tobject; const event: objecteventty; var template: menutemplatety);
 
Protected procedure objectevent(const sender: tobject; const event: objecteventty); override;
 
Protected function gettemplatefont(const sender: tmenuitem): tmenufont; virtual;
 
Protected function gettemplatefontactive( const sender: tmenuitem): tmenufontactive; virtual;
 
Public constructor create(aowner: tcomponent); overload; override;
 
Public constructor createtransient(const atransientfor: twidget; const amouseinfopo: pmouseeventinfoty); overload;
 
Public destructor destroy; override;
 
Public function checkexec: boolean;
 
Public procedure assign(source: tpersistent); override;
 
Public procedure doshortcut(var info: keyeventinfoty);
 
Public procedure doupdate;
 
Public procedure updatehotkeys();
 
Public function count: integer;
 
Public function transientfor: twidget;
 
Public function mouseinfopo: pmouseeventinfoty;
 
Public function shortcutseparator: msechar;
 
Public class function getshortcutseparator(const ainstance: tcustommenu): msechar;
 

Properties

Protected property execitem: tmenuitem write setexecitem;
 
Public property menu: tmenuitem read fmenu write setmenu;
 
Public property frametemplate: tframecomp read ftemplate.frame write setframetemplate;
 
Public property facetemplate: tfacecomp read ftemplate.face write setfacetemplate;
 
Public property itemframetemplate: tframecomp read ftemplate.itemframe write setitemframetemplate;
 
Public property itemfacetemplate: tfacecomp read ftemplate.itemface write setitemfacetemplate;
 
Public property itemframetemplateactive: tframecomp read ftemplate.itemframeactive write setitemframetemplateactive;
 
Public property itemfacetemplateactive: tfacecomp read ftemplate.itemfaceactive write setitemfacetemplateactive;
 
Public property separatorframetemplate: tframecomp read ftemplate.separatorframe write setseparatorframetemplate;
 
Public property checkboxframetemplate: tframecomp read ftemplate.checkboxframe write setcheckboxframetemplate;
 
Public property template: menutemplatety read ftemplate;
 
Public property options: menuoptionsty read foptions write setoptions default defaultmenuoptions;
 
Public property onupdate: menueventty read fonupdate write fonupdate;
 

Generated by PasDoc 0.16.0.