Development environment: Delphi 7
Development name: Clock component
Development note: The clock can switch pointer style and digital style, you can set the time, minutes, seconds and the value of the display color, can be opened and paused, you can set the display size.
Recently in the study of Delphi, in different ways to embody the process of learning, just began to draw the clock directly on the form, after the completion of the use of the timer, and then use the thread to implement the clock (see the first, the second program). It is then packaged into component classes for next use, with timers and threads, respectively (see Third, fourth program). Finally, drawing the clock with GDI + has a much better effect than GDI, and also uses a double-buffering mechanism and a timer (see fifth program).
Clock [Timer Control]
Clock [Threading Control]
The clock [Timer component] requires the "clock/source/clock.pas" component to be installed before the project is opened.
Clocks [Multithreaded Components] need to install the "clock/source/clock.pas" component before opening the project.
Clocks [GDI + and timers] require a igdi+ environment (see the use of the Igdiplus Library in the article Delphi 7), install the "clock/source/clock.pas" component, and then open the project.
Delphi Clock Source code download:
https://download.csdn.net/download/akof1314/3073289