3 <title>KOL Help: TTimer object (main frame)
</title>
7 <body bgcolor=
"#FFFFEF" text=
"#000000" link=
"#008080" vlink=
"#008000" alink=
"#808000">
8 <p><font face=
"Courier" color=
"#800080"><b>TTimer( 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 TTimer = object(
<a href=tobj.htm
target=
"_top">TObj
</a> )
15 Easy timer incapsulation object. Uses applet window to
16 receive timer events. So, either assign your main form
17 to
<a href=kol_pas.htm#applet
target=
"_top">Applet
</a> variable or create applet button object (and
18 assign it to
<a href=kol_pas.htm#applet
target=
"_top">Applet
</a>) before enabling timer.
19 <h3 align=
"center"><font color=
"#FF8080">TTimer properties
</font></h3>
22 <font face=
"Courier" color=
"#800080"><b>property
</b> <font color=
"#808000"><b>Handle
</b></font>:
<b>Integer
</b>;
</font>
23 <font face=
"Webdings" size=
7>Ñ</font>
25 Windows timer object handle.
27 <a name=
"enabled"></a>
29 <font face=
"Courier" color=
"#800080"><b>property
</b> <font color=
"#808000"><b>Enabled
</b></font>:
<b>Boolean
</b>;
</font>
31 True, is timer is on. Initially, always False. Before assigning True,
32 make sure, that
<a href=kol_pas.htm#applet
target=
"_top">Applet
</a> global variable is assigned to applet object
33 (
<a href=kol_pas.htm#newapplet
target=
"_top">NewApplet
</a>) or to form (
<a href=kol_pas.htm#newform
target=
"_top">NewForm
</a>).
35 <a name=
"interval"></a>
37 <font face=
"Courier" color=
"#800080"><b>property
</b> <font color=
"#808000"><b>Interval
</b></font>:
<b>Integer
</b>;
</font>
39 Interval in milliseconds (
1000 is default and means
1 second).
41 <h4 align=
"center"><font color=
"black">Properties, inherited from
<a href=
"tobj.htm" target=
"_top">TObj
</a></font></h4>
42 <h3 align=
"center"><font color=
"#FF8080">TTimer methods
</font></h3>
43 <a name=
"destroy"></a>
45 <font face=
"Courier" color=
"#800080"><b>destructor
</b> <font color=
"#808000"><b>Destroy
</b></font>;
<b>virtual
</b>;
</font>
46 <font face=
"Webdings" size=
7>N</font>
50 <h4 align=
"center"><font color=
"black">Methods, inherited from
<a href=
"tobj.htm" target=
"_top">TObj
</a></font></h4>
51 <h3 align=
"center"><font color=
"#FF8080">TTimer events
</font></h3>
52 <a name=
"ontimer"></a>
54 <font face=
"Courier" color=
"#800080"><b>property
</b> <font color=
"#808000"><b>OnTimer
</b></font>:
<a href=kol_pas.htm#tonevent
target=
"_top">TOnEvent
</a>;
</font>
56 Event, which is called when time interval is over.
58 <h4 align=
"center"><font color=
"black">Events, inherited from
<a href=
"tobj.htm" target=
"_top">TObj
</a></font></h4>
59 <h3 align=
"center"><font color=
"#FF8080">TTimer fields
</font></h3>
60 <h4 align=
"center"><font color=
"black">Fields, inherited from
<a href=
"tobj.htm" target=
"_top">TObj
</a></font></h4>
62 <p align=
"center">[
<a href=index.htm
>Index
</a> ]
</p>
63 <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>