home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Clock12
- BorderStyle = 3 'Fixed Dialog
- Caption = "12 Hour Clock"
- ClientHeight = 1500
- ClientLeft = 60
- ClientTop = 5490
- ClientWidth = 3570
- Height = 1905
- Icon = "Clock12.frx":0000
- Left = 0
- LinkTopic = "Form1"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1500
- ScaleWidth = 3570
- ShowInTaskbar = 0 'False
- Top = 5145
- Width = 3690
- Begin VB.CheckBox chkFlashDigits
- Caption = "Flash digits"
- Height = 300
- Left = 120
- TabIndex = 1
- Top = 840
- Width = 1875
- End
- Begin VB.CommandButton cmdBackColor
- Caption = "BackColor"
- Height = 315
- Left = 2400
- TabIndex = 4
- Top = 480
- Width = 1095
- End
- Begin VB.CommandButton cmdForeColor
- Caption = "ForeColor"
- Height = 315
- Left = 2400
- TabIndex = 3
- Top = 120
- Width = 1095
- End
- Begin VB.CheckBox Check1
- Caption = "Show unlit segments"
- Height = 300
- Left = 120
- TabIndex = 2
- Top = 1140
- Value = 1 'Checked
- Width = 1875
- End
- Begin VB.PictureBox picLCD
- ForeColor = &H00008080&
- Height = 435
- Left = 120
- ScaleHeight = 375
- ScaleWidth = 2115
- TabIndex = 0
- Top = 180
- Width = 2175
- End
- Begin VB.Timer Timer1
- Interval = 1000
- Left = 2220
- Top = 900
- End
- Attribute VB_Name = "Clock12"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Dim moLCD As New clsLCD
- Private Sub Form_Load()
- With moLCD
- .Alignment = gnCENTER
- .ShowUnlitSegments = True
- Set .Container = picLCD
- End With
- Timer1_Timer
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- Set moLCD = Nothing
- Set Clock12 = Nothing
- End Sub
- Private Sub Timer1_Timer()
- moLCD.Caption = Format$(Now, "h:mm:ss A/P")
- End Sub
- Private Sub Check1_Click()
- moLCD.ShowUnlitSegments = Not moLCD.ShowUnlitSegments
- End Sub
- Private Sub cmdForeColor_Click()
- moLCD.SelectForeColor
- End Sub
- Private Sub cmdBackColor_Click()
- moLCD.SelectBackColor
- End Sub
- Private Sub chkFlashDigits_Click()
- moLCD.FlashDigits = Not moLCD.FlashDigits
- End Sub
-