|
|
Total Access Components Tour: Clock
The Clock control allows you
to place a clock on your forms or reports. You can select both analog and
digital styles, and set the time format to either 12 or 24 hour time.
Additionally, you can specify an alarm time. When this time is reached, an
event is triggered, allowing you to hook events to specific times.

Using the Clock Control
Place the Clock control on
your form, and set the ClockStyle to either digital or analog. You can
also set the display font and colors.
Setting Alarm Times
To use the Alarm feature, set
the AlarmTime property to a time. Include the seconds if desired. When the
time specified is reached, the Clock control triggers the OnAlarm
property. Write the code in this event’s Event Procedure to perform the
desired action.
Clock Properties
|
Name |
Description |
| AlarmEnable |
Whether the alarm is
Enabled or disable. |
| AlarmTime
|
The time that the
OnAlarm event should fire. |
| BackColor |
The backcolor of the
control. |
| ClockStyle |
The style of the
clock. |
| EffectOffset |
The offset of the text
effect. |
| EffectStyle |
The display style of
the clock face. |
| Font |
The font of the
digital clock. |
| ForeColor |
The color of the text. |
| HighlightColor |
The highlight color. |
| LongDate |
Whether the long date
is displayed. |
| ShadowColor |
The shadow color. |
| ShowDate |
Whether the date is
shown. |
| ShowMinuteTicks |
Whether minute tick
marks on the analog clock are displayed. |
| ShowSeconds |
Whether seconds are
shown. |
| TextStyle
|
The effect to apply to
the text displayed when the ClockStyle property is set to Digital. |
| Units
|
The units of the
digital clock. |
Clock Events
|
Name |
Description |
| Click |
Fires when the mouse
is clicked over the control. |
| DblClick |
Fires when the mouse
is double clicked over the control. |
| KeyDown |
Fires when a key is
depressed. |
| KeyPress
|
Fires when a key is
pressed. |
| KeyUp |
Fires when a key is
released. |
| MouseDown |
Fires when a mouse
button is depressed over a control. |
| MouseMove |
Fires when the mouse
moves over the control. |
| MouseUp |
Fires when a mouse
button is released over a control. |
| OnAlarm |
Fires when AlarmTime
is reached. |
|