3 <title>KOL Help: TActionList object (main frame)
</title>
7 <body bgcolor=
"#FFFFEF" text=
"#000000" link=
"#008080" vlink=
"#008000" alink=
"#808000">
8 <p><font face=
"Courier" color=
"#800080"><b>TActionList( unit
<a href=kol_pas.htm
>KOL.pas
</a> )
9 <font face=
"Wingdings">ï
</font> <a href=tobj.htm
>TObj
</a>
10 <font face=
"Wingdings">ï
</font> <a href=_tobj.htm
>_TObj
</a>
13 TActionList = object(
<a href=tobj.htm
target=
"_top">TObj
</a> )
15 TActionList maintains a list of actions used with components and controls,
16 such as menu items and buttons.
17 Action lists are used, in conjunction with actions, to centralize the response
18 to user commands (actions).
19 Write an
<a href=#onupdateactions
target=
"main">OnUpdateActions
</a> handler to update actions state.
20 Created using function
<a href=kol_pas.htm#newactionlist
target=
"_top">NewActionList
</a>.
21 See also
<a href=taction.htm
target=
"_top">TAction
</a>.
22 <h3 align=
"center"><font color=
"#FF8080">TActionList properties
</font></h3>
23 <a name=
"actions"></a>
25 <font face=
"Courier" color=
"#800080"><b>property
</b> <font color=
"#808000"><b>Actions
</b></font>[ Idx:
<b>integer
</b> ]: PAction;
</font>
26 <font face=
"Webdings" size=
7>Ñ</font>
28 Access to actions in the list.
32 <font face=
"Courier" color=
"#800080"><b>property
</b> <font color=
"#808000"><b>Count
</b></font>:
<b>integer
</b>;
</font>
33 <font face=
"Webdings" size=
7>Ñ</font>
35 Number of actions in the list..
37 <h4 align=
"center"><font color=
"black">Properties, inherited from
<a href=
"tobj.htm" target=
"_top">TObj
</a></font></h4>
38 <h3 align=
"center"><font color=
"#FF8080">TActionList methods
</font></h3>
41 <font face=
"Courier" color=
"#800080"><b>function
</b> <font color=
"#808000"><b>Add
</b></font>(
<b>const
</b> ACaption, AHint:
<b>string
</b>; OnExecute:
<a href=kol_pas.htm#tonevent
target=
"_top">TOnEvent
</a> ): PAction;
</font>
43 Add a new action to the list. Returns pointer to action object.
47 <font face=
"Courier" color=
"#800080"><b>procedure
</b> <font color=
"#808000"><b>Delete
</b></font>( Idx:
<b>integer
</b> );
</font>
49 Delete action by index from list.
53 <font face=
"Courier" color=
"#800080"><b>procedure
</b> <font color=
"#808000"><b>Clear
</b></font>;
</font>
55 Clear all actions in the list.
57 <h4 align=
"center"><font color=
"black">Methods, inherited from
<a href=
"tobj.htm" target=
"_top">TObj
</a></font></h4>
58 <h3 align=
"center"><font color=
"#FF8080">TActionList events
</font></h3>
59 <a name=
"onupdateactions"></a>
61 <font face=
"Courier" color=
"#800080"><b>property
</b> <font color=
"#808000"><b>OnUpdateActions
</b></font>:
<a href=kol_pas.htm#tonevent
target=
"_top">TOnEvent
</a>;
</font>
63 Event handler to update actions state. This event is called each time when application
64 goes in the idle state (no messages in the queue).
66 <h4 align=
"center"><font color=
"black">Events, inherited from
<a href=
"tobj.htm" target=
"_top">TObj
</a></font></h4>
67 <h3 align=
"center"><font color=
"#FF8080">TActionList fields
</font></h3>
68 <h4 align=
"center"><font color=
"black">Fields, inherited from
<a href=
"tobj.htm" target=
"_top">TObj
</a></font></h4>
70 <p align=
"center">[
<a href=index.htm
>Index
</a> ]
</p>
71 <p align=
"center"><font face=
"Comic Sans MS"><small>This help is generated
22-Sep-
2005 by KOL Help generator, (C)
2000-
2001 by Vladimir Kladov
<br>Modified (C)
2003 by Alexander Bartov
</small></font></p>