initial commit
[rofl0r-KOL.git] / main_ttimer.htm
blob156b0e7959c77e3191ea26a981786f4434bd65f1
1 <html>
2 <head>
3 <title>KOL Help: TTimer 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>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>
11 </b></font></p>
12 <p><b>
13 TTimer = object( <a href=tobj.htm target="_top">TObj</a> )
14 </b></p>
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>
20 <a name="handle"></a>
21 <p>
22 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>Handle</b></font>: <b>Integer</b>;</font>
23 &nbsp;&nbsp;&nbsp;<font face="Webdings" size=7>&#209;</font>&nbsp;&nbsp;&nbsp;
24 <br>
25 Windows timer object handle.
26 </p>
27 <a name="enabled"></a>
28 <p>
29 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>Enabled</b></font>: <b>Boolean</b>;</font>
30 <br>
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>).
34 </p>
35 <a name="interval"></a>
36 <p>
37 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>Interval</b></font>: <b>Integer</b>;</font>
38 <br>
39 Interval in milliseconds (1000 is default and means 1 second).
40 </p>
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>
44 <p>
45 <font face="Courier" color="#800080"><b>destructor</b> <font color="#808000"><b>Destroy</b></font>; <b>virtual</b>;</font>
46 &nbsp;&nbsp;&nbsp;<font face="Webdings" size=7>&#78;</font>&nbsp;&nbsp;&nbsp;
47 <br>
48 Destructor.
49 </p>
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>
53 <p>
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>
55 <br>
56 Event, which is called when time interval is over.
57 </p>
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>
61 <hr>
62 <p align="center">[&nbsp;<a href=index.htm>Index</a>&nbsp;]</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>
64 </body>
65 </html>