Difference between revisions of "TActionList"
From Lazarus wiki
Jump to navigationJump to searchm |
|||
(8 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | 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. | + | {{TActionList}} |
+ | |||
+ | 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. | ||
+ | |||
+ | ;Images: a link to a [[TImageList]] that can hold images that correspond to the contained TActions of the TActionList. | ||
+ | ;State: | ||
+ | :;asNormal: normal handling when TActions are invoked by hotkeys or otherwise. | ||
+ | :;asSuspended: no response on invoking, but TAction.Enabled is left unchanged | ||
+ | :;asSuspendedEnabled: no response on invoking, but all TAction.Enabled are set ''true'' | ||
+ | |||
+ | Double-clicking on the TActionList present the ActionList Editor where you can add new TActions. Right-click in the actionlist-editor present a local menu. [[TStandardAction]]s are also available with {{keypress|Ctrl+Ins}}. | ||
+ | |||
+ | [[image:actionlist-editor.png]] | ||
== 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]] | ||
+ | * [[TStandardAction]] | ||
{{LCL Components}} | {{LCL Components}} | ||
− | |||
− |
Revision as of 12:29, 31 August 2017
│
Deutsch (de) │
English (en) │
français (fr) │
日本語 (ja) │
русский (ru) │
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.
- Images
- a link to a TImageList that can hold images that correspond to the contained TActions of the TActionList.
- State
-
- asNormal
- normal handling when TActions are invoked by hotkeys or otherwise.
- asSuspended
- no response on invoking, but TAction.Enabled is left unchanged
- asSuspendedEnabled
- no response on invoking, but all TAction.Enabled are set true
Double-clicking on the TActionList present the ActionList Editor where you can add new TActions. Right-click in the actionlist-editor present a local menu. TStandardActions are also available with Ctrl+Ins.
See also
- TActionList documentation
- TAction, TActionLink, TActionListEnumerator, TContainedAction, TCustomAction, TCustomActionList, TShortCutList
- TStandardAction