You are here: Symbol Reference > AbOpHour Namespace > Classes > TAbOpHourCounter Class
ContentsIndexHome
PreviousUpNext
TAbOpHourCounter Class TAbOpHourCounter Class
private   TAbOpHourCounter Members   Send Feedback

TAbOpHourCounter is used to count the operation time.

File
Pascal
TAbOpHourCounter = class(TAbGraphicControl);
C++
class TAbOpHourCounter : public TAbGraphicControl;
Description

With this component you can count the time. With the property "Count = true" the counter will start. An OnLimit event occurs if the selected limit is reached. Via the property "CountDown = true" and "Count = true" the counter counts backwards until 0. If the counted time becomes 0 an OnZero event occurs. See also the options opResetOnLimit, opStopOnLimit and opPresetOnZero. 

With the property IniSettings you can specify a file (ini-style) where the components will save the time. While creation the component will check/load and while destroy the component saves the time to this file. 

With the method SetTime you can set the time of the counter. 

With the properties SeparatorChar, SeparatorHour, SeparatorMin, SeparatorSec and Indicate you can change the Indicated informations.

Example

with a counter value of 238 hours, 49 minutes, 23 seconds 

Settings:  

Property 
value 
{1 blanc} 

 

Result with Indicate property of

Indicate property value 
Indicated Value 
oiHour 
238h 
oiHourMin 
238h 49m 
oiHourMinSec 
238h 49m 23s 
Hierarchy
_GClass.TAbGraphicControl
AbOpHour.TAbOpHourCounter
Related Information
Hard-& Software A.Baecker
What do you think about this topic? Send feedback!