Clock Control

Purpose:

Returns the handle of a new clock control control

Syntax:

clk = clock(type,x,y,width,height)

 

clk.methodname

where methodname is one of the following

stop
start
reset
settime
play
pause
resume
colorseperator
colortext
mode
settime
 
 
 

 

Comments:

The clock digits and background colors can be changed.

clk.color = GRAY
clk.colortext = GREEN
//clk.colorbackground = rgb(0,47,108)
clk.actiontimesup = "timesup"
clk.colorgradient1 = rgb(0,0,0)
clk.colorgradient2 = rgb(0,0,255)  // draw using gradients

Example:

clk = Clock("clock",20,20,300,200)

 

clk.mode = 2

Countdown mode also adds updown controls to help user easily set time