Difference between revisions of "TActionList"
From Free Pascal wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
A '''TActionList''' [[image:tactionlist.png]] component is a container for [[TAction]] components. When using TActions in the Action-property of buttons, menus, dialogs, controls it is possible to centralize the effects of mouse-clicks, menu-choices, dialog-selections etc. in a single event handler. | A '''TActionList''' [[image:tactionlist.png]] component is a container for [[TAction]] components. When using TActions in the Action-property of buttons, menus, dialogs, controls it is possible to centralize the effects of mouse-clicks, menu-choices, dialog-selections etc. in a single event handler. | ||
+ | |||
+ | To use a TActionList on a [[TForm]], you select it on the [[Standard tab]] of the [[Component palette]] and place it by clicking on the form. | ||
+ | Double-clicking on the TActionList present the ActionList Editor where you can add new TActions | ||
+ | |||
== See also == | == See also == | ||
* [[doc:lcl/actnlist/tactionlist.html|TActionList documentation]] | * [[doc:lcl/actnlist/tactionlist.html|TActionList documentation]] | ||
* [[TAction]], [[TActionLink]], [[TActionListEnumerator]], [[TContainedAction]], [[TCustomAction]], [[TCustomActionList]], [[TShortCutList]] | * [[TAction]], [[TActionLink]], [[TActionListEnumerator]], [[TContainedAction]], [[TCustomAction]], [[TCustomActionList]], [[TShortCutList]] | ||
+ | * [[TStandardAction]] | ||
{{LCL Components}} | {{LCL Components}} | ||
[[Category:Components]] | [[Category:Components]] |
Revision as of 00:52, 25 July 2016
A TActionList component is a container for TAction components. When using TActions in the Action-property of buttons, menus, dialogs, controls it is possible to centralize the effects of mouse-clicks, menu-choices, dialog-selections etc. in a single event handler.
To use a TActionList on a TForm, you select it on the Standard tab of the Component palette and place it by clicking on the form. Double-clicking on the TActionList present the ActionList Editor where you can add new TActions
See also
- TActionList documentation
- TAction, TActionLink, TActionListEnumerator, TContainedAction, TCustomAction, TCustomActionList, TShortCutList
- TStandardAction