up Inquisit Language Reference

mode attribute

The mode attribute specifies whether a onscreen clock functions like a timer, progress bar, stopwatch, or a regular clock.

Member of



/ mode = clockmode


clockmode One of the following values:

Value Description
timer The clock counts down to zero from the specified timeout.
stopwatch The clock starts at zero and displays the elapsed time.
clock The clock displays the current time.
progressbar The clock is displayed as a progress bar.


When in progress bar mode, the bar runs horizontally if the width is greater than the height, and vertically if the height is greater than the width. The color of the bar is determined by the txcolor attribute and the background by the txbgcolor attribute.


The following shows a stopwatch that displays the elapsed minutes and seconds:

<clock a>
/ format = "mm:ss"

The following displays a green horizontal progressbar on a light gray background with a 10 second duration:

<clock a>
/ mode = progressbar
/ timeout = 10000
/ size = (200px, 20px)
/ txcolor = green
/ txbgcolor = lightgray

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.