Class tcustomtoolbutton

Unit

Declaration

type tcustomtoolbutton = class(tindexpersistent, iactionlink, iimagelistinfo)

Description

No description available, ancestor tindexpersistent description follows
No description available, ancestor townedeventpersistent description follows
No description available, ancestor tlinkedpersistent description follows
No description available, ancestor tnullinterfacedpersistent description follows
No description available, ancestor tvirtualpersistent description follows

Hierarchy

Overview

Fields

Protected ftag: integer;
Protected ftagpo: pointer;

Methods

Protected procedure doexecute(const tag: integer; const info: mouseeventinfoty);
Protected procedure objectevent(const sender: tobject; const event: objecteventty); override;
Protected procedure defineproperties(filer: tfiler); override;
Protected procedure actionchanged;
Protected function getactioninfopo: pactioninfoty;
Protected procedure doshortcut(var info: keyeventinfoty);
Protected function getinstance: tobject; override;
Protected function loading: boolean;
Protected function shortcutseparator: msechar;
Protected procedure calccaptiontext(var ainfo: actioninfoty);
Public constructor create(const aowner: tobject; const aprop: tindexpersistentarrayprop); overload; override;
Public constructor create(aowner: tcustomtoolbar); reintroduce; overload;
Public function toolbar: tcustomtoolbar;
Public function index: integer;
Public procedure execute;
Public procedure doupdate;

Properties

Public property checked: boolean read getchecked write setchecked;
Public property visible: boolean read getvisible write setvisible default true;
Public property enabled: boolean read getenabled write setenabled default true;
Public property shortcuts: shortcutarty read finfo.shortcut write setshortcuts;
Public property shortcuts1: shortcutarty read finfo.shortcut1 write setshortcuts1;
Public property imagelist: timagelist read getimagelist write setimagelist stored isimageliststored;
Public property imagenr: imagenrty read finfo.imagenr write setimagenr stored isimagenrstored default -1;
Public property imagenrdisabled: imagenrty read finfo.imagenrdisabled write setimagenrdisabled stored isimagenrdisabledstored default -2;
Public property colorglyph: colorty read finfo.colorglyph write setcolorglyph stored iscolorglyphstored default cl_default;
Public property color: colorty read finfo.color write setcolor stored iscolorstored default cl_default;
Public property imagecheckedoffset: integer read finfo.imagecheckedoffset write setimagecheckedoffset stored isimagecheckedoffsetstored default 0;
Public property hint: msestring read finfo.hint write sethint stored ishintstored;
Public property action: tcustomaction read finfo.action write setaction;
Public property state: actionstatesty read getstate write setstate stored isstatestored default [];
Public property shortcut: shortcutty read getshortcut write setshortcut stored isshortcutstored default 0;
Public property shortcut1: shortcutty read getshortcut1 write setshortcut1 stored isshortcut1stored default 0;
Public property options: menuactionoptionsty read finfo.options write setoptions default [];
Public property group: integer read finfo.group write setgroup stored isgroupstored default 0;
Public property tag: integer read ftag write ftag default 0;
Public property tagpo: pointer read ftagpo write ftagpo;
Public property tagpointer: pointer read ftagpo write ftagpo; deprecated 'Use tagpo instead';
Public property onexecute: notifyeventty read finfo.onexecute write setonexecute stored isonexecutestored;
Public property onbeforeexecute: accepteventty read finfo.onbeforeexecute write setonbeforeexecute stored isonbeforeexecutestored;
Public property onafterexecute: notifyeventty read finfo.onafterexecute write setonafterexecute stored isonafterexecutestored;

Description

Fields

Protected ftag: integer;
 
Protected ftagpo: pointer;
 

Methods

Protected procedure doexecute(const tag: integer; const info: mouseeventinfoty);
 
Protected procedure objectevent(const sender: tobject; const event: objecteventty); override;
 
Protected procedure defineproperties(filer: tfiler); override;
 
Protected procedure actionchanged;
 
Protected function getactioninfopo: pactioninfoty;
 
Protected procedure doshortcut(var info: keyeventinfoty);
 
Protected function getinstance: tobject; override;
 
Protected function loading: boolean;
 
Protected function shortcutseparator: msechar;
 
Protected procedure calccaptiontext(var ainfo: actioninfoty);
 
Public constructor create(const aowner: tobject; const aprop: tindexpersistentarrayprop); overload; override;
 
Public constructor create(aowner: tcustomtoolbar); reintroduce; overload;
 
Public function toolbar: tcustomtoolbar;
 
Public function index: integer;
 
Public procedure execute;
 
Public procedure doupdate;
 

Properties

Public property checked: boolean read getchecked write setchecked;
 
Public property visible: boolean read getvisible write setvisible default true;
 
Public property enabled: boolean read getenabled write setenabled default true;
 
Public property shortcuts: shortcutarty read finfo.shortcut write setshortcuts;
 
Public property shortcuts1: shortcutarty read finfo.shortcut1 write setshortcuts1;
 
Public property imagelist: timagelist read getimagelist write setimagelist stored isimageliststored;
 
Public property imagenr: imagenrty read finfo.imagenr write setimagenr stored isimagenrstored default -1;
 
Public property imagenrdisabled: imagenrty read finfo.imagenrdisabled write setimagenrdisabled stored isimagenrdisabledstored default -2;
 
Public property colorglyph: colorty read finfo.colorglyph write setcolorglyph stored iscolorglyphstored default cl_default;
 
Public property color: colorty read finfo.color write setcolor stored iscolorstored default cl_default;
 
Public property imagecheckedoffset: integer read finfo.imagecheckedoffset write setimagecheckedoffset stored isimagecheckedoffsetstored default 0;
 
Public property hint: msestring read finfo.hint write sethint stored ishintstored;
 
Public property action: tcustomaction read finfo.action write setaction;
 
Public property state: actionstatesty read getstate write setstate stored isstatestored default [];
 
Public property shortcut: shortcutty read getshortcut write setshortcut stored isshortcutstored default 0;
 
Public property shortcut1: shortcutty read getshortcut1 write setshortcut1 stored isshortcut1stored default 0;
 
Public property options: menuactionoptionsty read finfo.options write setoptions default [];
 
Public property group: integer read finfo.group write setgroup stored isgroupstored default 0;
 
Public property tag: integer read ftag write ftag default 0;
 
Public property tagpo: pointer read ftagpo write ftagpo;
 
Public property tagpointer: pointer read ftagpo write ftagpo; deprecated 'Use tagpo instead';

Warning: this symbol is deprecated: Use tagpo instead

 
Public property onexecute: notifyeventty read finfo.onexecute write setonexecute stored isonexecutestored;
 
Public property onbeforeexecute: accepteventty read finfo.onbeforeexecute write setonbeforeexecute stored isonbeforeexecutestored;
 
Public property onafterexecute: notifyeventty read finfo.onafterexecute write setonafterexecute stored isonafterexecutestored;
 

Generated by PasDoc 0.16.0.