initial commit
[rofl0r-KOL.git] / main_tactionlist.htm
blob7f04def0cad33a4d5a36e11bd9d0f51776f4f4d2
1 <html>
2 <head>
3 <title>KOL Help: TActionList object (main frame)</title>
4 <base target="_top">
5 </head>
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>
11 </b></font></p>
12 <p><b>
13 TActionList = object( <a href=tobj.htm target="_top">TObj</a> )
14 </b></p>
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>
24 <p>
25 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>Actions</b></font>[ Idx: <b>integer</b> ]: PAction;</font>
26 &nbsp;&nbsp;&nbsp;<font face="Webdings" size=7>&#209;</font>&nbsp;&nbsp;&nbsp;
27 <br>
28 Access to actions in the list.
29 </p>
30 <a name="count"></a>
31 <p>
32 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>Count</b></font>: <b>integer</b>;</font>
33 &nbsp;&nbsp;&nbsp;<font face="Webdings" size=7>&#209;</font>&nbsp;&nbsp;&nbsp;
34 <br>
35 Number of actions in the list..
36 </p>
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>
39 <a name="add"></a>
40 <p>
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>
42 <br>
43 Add a new action to the list. Returns pointer to action object.
44 </p>
45 <a name="delete"></a>
46 <p>
47 <font face="Courier" color="#800080"><b>procedure</b> <font color="#808000"><b>Delete</b></font>( Idx: <b>integer</b> );</font>
48 <br>
49 Delete action by index from list.
50 </p>
51 <a name="clear"></a>
52 <p>
53 <font face="Courier" color="#800080"><b>procedure</b> <font color="#808000"><b>Clear</b></font>;</font>
54 <br>
55 Clear all actions in the list.
56 </p>
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>
60 <p>
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>
62 <br>
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).
65 </p>
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>
69 <hr>
70 <p align="center">[&nbsp;<a href=index.htm>Index</a>&nbsp;]</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>
72 </body>
73 </html>