Sign in Join
Wiki copytemporary

TActionList: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: TActionList

OldNewLine
1+A **TActionList** ![](/wiki-images/1/1e/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.
2+
3+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.
4+
5+Images
6+a link to a [[TImageList]] that can hold images that correspond to the contained TActions of the TActionList.
7+
8+State
9+asNormal
10+normal handling when TActions are invoked by hotkeys or otherwise.
11+
12+asSuspended
13+no response on invoking, but TAction.Enabled is left unchanged
14+
15+asSuspendedEnabled
16+no response on invoking, but all TAction.Enabled are set *true*
17+
18+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|TStandardActions]] are also available with <span class="kbd">Ctrl+Ins</span>.
19+
20+<figure>
21+<img src="actionlist-editor.png" title="actionlist-editor.png" />
22+<figcaption>actionlist-editor.png</figcaption>
23+</figure>
24+
25+## See also
26+
27+- [[doc:lcl/actnlist/tactionlist.html|TActionList documentation]]
28+- [[TAction]], [[TActionLink]], [[TActionListEnumerator]], [[TContainedAction]], [[TCustomAction]], [[TCustomActionList]], [[TShortCutList]]
29+- [[TStandardAction]]
30+
31+---
32+*From the Free Pascal wiki, page "TActionList", as it stood on 2024-03-20 after a change by Ariben, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history