Delphi Clock Components

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.