home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Power Pack / Visual_Basic4_Power_Pack.bin / vb4files / vbmaxlcd / clock12.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-11-20  |  2.9 KB  |  101 lines

  1. VERSION 4.00
  2. Begin VB.Form Clock12 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "12 Hour Clock"
  5.    ClientHeight    =   1500
  6.    ClientLeft      =   60
  7.    ClientTop       =   5490
  8.    ClientWidth     =   3570
  9.    Height          =   1905
  10.    Icon            =   "Clock12.frx":0000
  11.    Left            =   0
  12.    LinkTopic       =   "Form1"
  13.    LockControls    =   -1  'True
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   1500
  17.    ScaleWidth      =   3570
  18.    ShowInTaskbar   =   0   'False
  19.    Top             =   5145
  20.    Width           =   3690
  21.    Begin VB.CheckBox chkFlashDigits 
  22.       Caption         =   "Flash digits"
  23.       Height          =   300
  24.       Left            =   120
  25.       TabIndex        =   1
  26.       Top             =   840
  27.       Width           =   1875
  28.    End
  29.    Begin VB.CommandButton cmdBackColor 
  30.       Caption         =   "BackColor"
  31.       Height          =   315
  32.       Left            =   2400
  33.       TabIndex        =   4
  34.       Top             =   480
  35.       Width           =   1095
  36.    End
  37.    Begin VB.CommandButton cmdForeColor 
  38.       Caption         =   "ForeColor"
  39.       Height          =   315
  40.       Left            =   2400
  41.       TabIndex        =   3
  42.       Top             =   120
  43.       Width           =   1095
  44.    End
  45.    Begin VB.CheckBox Check1 
  46.       Caption         =   "Show unlit segments"
  47.       Height          =   300
  48.       Left            =   120
  49.       TabIndex        =   2
  50.       Top             =   1140
  51.       Value           =   1  'Checked
  52.       Width           =   1875
  53.    End
  54.    Begin VB.PictureBox picLCD 
  55.       ForeColor       =   &H00008080&
  56.       Height          =   435
  57.       Left            =   120
  58.       ScaleHeight     =   375
  59.       ScaleWidth      =   2115
  60.       TabIndex        =   0
  61.       Top             =   180
  62.       Width           =   2175
  63.    End
  64.    Begin VB.Timer Timer1 
  65.       Interval        =   1000
  66.       Left            =   2220
  67.       Top             =   900
  68.    End
  69. Attribute VB_Name = "Clock12"
  70. Attribute VB_Creatable = False
  71. Attribute VB_Exposed = False
  72. Option Explicit
  73. Dim moLCD As New clsLCD
  74. Private Sub Form_Load()
  75.     With moLCD
  76.         .Alignment = gnCENTER
  77.         .ShowUnlitSegments = True
  78.         Set .Container = picLCD
  79.     End With
  80.     Timer1_Timer
  81. End Sub
  82. Private Sub Form_Unload(Cancel As Integer)
  83.     Set moLCD = Nothing
  84.     Set Clock12 = Nothing
  85. End Sub
  86. Private Sub Timer1_Timer()
  87.     moLCD.Caption = Format$(Now, "h:mm:ss A/P")
  88. End Sub
  89. Private Sub Check1_Click()
  90.     moLCD.ShowUnlitSegments = Not moLCD.ShowUnlitSegments
  91. End Sub
  92. Private Sub cmdForeColor_Click()
  93.     moLCD.SelectForeColor
  94. End Sub
  95. Private Sub cmdBackColor_Click()
  96.     moLCD.SelectBackColor
  97. End Sub
  98. Private Sub chkFlashDigits_Click()
  99.     moLCD.FlashDigits = Not moLCD.FlashDigits
  100. End Sub
  101.