TVwClock counting down

Hi:

Somebody has used a TVrClock component to display seconds down to zero like from 20 to 0?

Maybe using ClockType := ctCustom and obtaining the value from other source?

Francisco

You would indeed need to do this in ctCustom mode and update the Seconds property programmatically from a timer for example.

It is a good & useful suggestion though and we’ll at adding such countdown mode.

I used a TVrNum to display the seconds from a TVrClock.OnSecondsChanged event:
VrCountDown.Value := (PauseMilSecs div 1000) - Seconds;
The TVrClock Visible property set to False

Excellent!

That was fast! CoutDownClock is already in version 2.8.4.0!
Thank you Bruno

1 Like