If (fhMin < 10) Then
fhMin1 = 0
fhMin2 = fhMin
Else
fhMin1 = Int(fhMin / 10)
fhMin2 = fhMin - fhMin1 * 10
End If
If (fhSec < 10) Then
fhSec1 = 0
fhSec2 = fhSec
Else
fhSec1 = Int(fhSec / 10)
fhSec2 = fhSec - fhSec1 * 10
End If
ShowNum wPw1(color_index), C_clock, fhHour1, color1, 1
ShowNum wPw1(color_index), C_clock, fhHour2, color1, 2
ShowNum wPw1(color_index), C_clock, fhMin1, color1, 4
ShowNum wPw1(color_index), C_clock, fhMin2, color1, 5
ShowNumS wPw2(color_index), SecP, fhSec1 + 1, color1, 2
ShowNumS wPw2(color_index), SecP, fhSec2 + 1, color1, 3
ShowNum wPw1(color_index), C_clock, 10, color1, 3
If flAge = True Then
ShowNumS wPw2(color_index), SecP, 0, color1, 1
flAge = False
Else
ShowNumS wPw2(color_index), SecP, 11, color1, 1
flAge = True
End If
End Sub
Private Sub Timer2_Timer()
Dim fhsec4, fhsec5
If (fhSec3 < 10) Then
fhsec4 = 0
fhsec5 = fhSec3
Else
fhsec4 = Int(fhSec3 / 10)
fhsec5 = fhSec3 - fhsec4 * 10
End If
ShowNumS wPw2(color_index), mSecP, fhsec4 + 1, color1, 1
ShowNumS wPw2(color_index), mSecP, fhsec5 + 1, color1, 2
If fhSec3 > 99 Then
fhSec3 = 0
Else
fhSec3 = fhSec3 + 1
End If
End Sub
Private Sub Timer8_Timer()
Dim ss
L1.X1 = 234 + 5 * Sin(6 * Second(Now) * Pi / 180)
L1.Y1 = 21 - 5 * Cos(6 * Second(Now) * Pi / 180)
L1.X2 = 234 + 18 * Sin(6 * Second(Now) * Pi / 180)
L1.Y2 = 21 - 18 * Cos(6 * Second(Now) * Pi / 180)
L2.X1 = 234 - 2 * Sin(6 * Minute(Time) * Pi / 180)
L2.Y1 = 21 + 2 * Cos(6 * Minute(Time) * Pi / 180)
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页