View the time control on the Internet.
Old rules, let's take a look (the clock color uses the clock color in the address given above ).
First, let's briefly introduce the function: This time control, three pointers can interact with the user. Remember the old-fashioned clock schedule, that is, using three pointers to adjust the time. WholeProgramThere is a time trigger in the background. Pay attention to the time display changes in the text box, which will be automatically accumulated based on the time currently adjusted. At the same time, the hour hands must be distinguished between morning and afternoon, so in the program, you need to take special measures to the hour hand and record the direction of the hour hand rotation and the number of turns. If you pay attention, you can find that when you turn the hour hand, the time in the text box automatically determines whether it is morning (-12) or afternoon (+ 12) based on the current time and the number of turns. You can also enter a number in the text box, in this way, the three pointers can be automatically located at the specified time.
In fact, the practicality of this control is not strong. A waste of space is used to set a time. The time control provided by vs itself is powerful enough. Haha. /Files/wangyong/time control .rar. If you are interested, try the effect.