home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Alarm
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "Alarm"
- ClientHeight = 6045
- ClientLeft = 915
- ClientTop = 600
- ClientWidth = 6975
- ControlBox = 0 'False
- Height = 6450
- Left = 855
- LinkTopic = "Form1"
- ScaleHeight = 6045
- ScaleWidth = 6975
- Top = 255
- Width = 7095
- Begin AwareBinary fpBinary2
- BackColor = &H0080FFFF&
- BorderStyle = 0 'No Border
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "System"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 720
- TabIndex = 11
- Top = 1440
- Width = 495
- End
- Begin AwareClock fpClock1
- AlarmTime = "00:00:00.00"
- AllowMoveHand = 2 'Right Button
- AnalogHourFill = -1 'True
- AnalogHourFillColor= &H000000FF&
- AnalogHourHandColor= &H00FF0000&
- AnalogMinFill = -1 'True
- AnalogMinFillColor= &H000000FF&
- AnalogMinHandColor= &H00FF0000&
- AutoSet = 0 'False
- AutoUpdate = 0 'False
- CurrentTime = "19:13:44.00"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Times New Roman"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Interval = "00:00:01.00"
- Left = 1560
- TabIndex = 10
- TimeString1159 = ""
- TimeString2359 = ""
- Top = 2520
- Visible = 0 'False
- Width = 1575
- End
- Begin AwareClock AlarmClock
- AlarmTime = "00:00:00.00"
- AllowMoveHand = 1 'Left Button
- AutoUpdate = 0 'False
- BackColor = &H0080FFFF&
- BorderGrayAreaColor= &H00C0C0C0&
- ClockStyle = 2 'Analog
- CurrentTime = "19:14:08.00"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Times New Roman"
- FontSize = 31.5
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 2880
- Interval = "00:00:01.00"
- Left = 480
- TabIndex = 9
- ThreeDFrameWidth= 1
- ThreeDInsideShadowColor= &H00808080&
- ThreeDInsideStyle= 2 'Raised
- ThreeDInsideWidth= 4
- ThreeDOutsideHighlightColor= &H00FFFFFF&
- ThreeDOutsideStyle= 2 'Raised
- ThreeDOutsideWidth= 5
- TimeString1159 = ""
- TimeString2359 = ""
- Top = 1200
- Width = 3735
- End
- Begin AwareBoolean fpBoolean1
- BackColor = &H00C0C0C0&
- BooleanPicture = 2 '3D Check Box
- BorderWidth = 1
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H000000FF&
- GroupId = 1
- GroupSelect = 3 'One and Only One
- Height = 375
- Index = 1
- Left = 4680
- TabIndex = 8
- TextFalse = "Turn OFF Alarm"
- ThreeDOutsideStyle= 1 'Lowered
- Top = 2640
- Width = 1695
- End
- Begin AwareBoolean fpBoolean1
- BackColor = &H00C0C0C0&
- BooleanPicture = 2 '3D Check Box
- BorderWidth = 1
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H000000FF&
- GroupId = 1
- GroupSelect = 3 'One and Only One
- Height = 375
- Index = 0
- Left = 4680
- TabIndex = 7
- TextFalse = "Turn ON Alarm"
- ThreeDOutsideStyle= 1 'Lowered
- Top = 2160
- Width = 1695
- End
- Begin AwareText fpText1
- AlignTextH = 1 'Center
- AlignTextV = 1 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'No Border
- ControlType = 2 'Static
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00FF0000&
- Height = 360
- Left = 4680
- TabIndex = 6
- TabStop = 0 'False
- Text = "Current Time :"
- ThreeDOutsideStyle= 2 'Raised
- ThreeDTextHighlightColor= &H00FFFFFF&
- ThreeDTextShadowColor= &H00808080&
- Top = 1200
- Width = 2055
- End
- Begin AwareClock fpClock2
- AlarmTime = "00:00:00.00"
- AllowMoveHand = 2 'Right Button
- CurrentTime = "00:00:00.00"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Times New Roman"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 390
- Interval = "00:00:01.00"
- Left = 4680
- TabIndex = 5
- TimeString1159 = ""
- TimeString2359 = ""
- Top = 1560
- Width = 2055
- End
- Begin AwareText fpText3
- AlignTextH = 1 'Center
- AlignTextV = 1 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'No Border
- ControlType = 2 'Static
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Times New Roman"
- FontSize = 15
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H000000FF&
- Height = 615
- Left = 480
- TabIndex = 4
- TabStop = 0 'False
- Text = "Drag one of the clock hands to set the alarm :"
- ThreeDOutsideStyle= 2 'Raised
- ThreeDText = 2 'Embossed w/ shading
- ThreeDTextHighlightColor= &H00FFFFFF&
- ThreeDTextShadowColor= &H00808080&
- Top = 300
- Width = 6135
- End
- Begin AwareText fpText2
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'No Border
- ControlType = 2 'Static
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H000000FF&
- Height = 495
- Left = 720
- MultiLine = -1 'True
- TabIndex = 3
- TabStop = 0 'False
- Text = "Enter the message to be displayed when alarm sounds :"
- ThreeDText = 2 'Embossed w/ shading
- ThreeDTextHighlightColor= &H00FFFFFF&
- ThreeDTextShadowColor= &H00808080&
- Top = 4440
- Width = 3135
- End
- Begin CommandButton Command2
- Caption = "Cancel"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Times New Roman"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 4680
- TabIndex = 2
- Top = 4200
- Width = 1455
- End
- Begin AwareMemo message
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 855
- Left = 720
- LineLimit = 2147483647
- OnFocusPosition = 3 'Caret
- PageWidth = 3495
- ScrollBars = 2 'Vertical (auto)
- TabIndex = 1
- ThreeDFrameWidth= 1
- ThreeDInsideStyle= 2 'Raised
- ThreeDOutsideStyle= 2 'Raised
- ThreeDOutsideWidth= 3
- Top = 5040
- Width = 5655
- WordWrap = -1 'True
- End
- Begin CommandButton Command1
- Caption = "OK"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Times New Roman"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 4680
- TabIndex = 0
- Top = 3600
- Width = 1455
- End
- End
-
- Sub AlarmClock_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
- 'Hide clock that displays alarm time in center of clock
- fpClock1.Visible = False
- End Sub
-
- Sub AlarmClock_MoveHand (OldHour As Integer, OldMin As Integer, OldSec As Integer, newhour As Integer, newmin As Integer, newsec As Integer)
- 'Show alarm time in center of clock and set current
- 'time of the analog clock for the displayed alarm time
- fpClock1.Visible = True
- fpClock1.CurrentTime = Format(newhour, "00") + ":" + Format(newmin, "00") + ":" + Format(newsec, "00")
- End Sub
-
- Sub Command1_Click ()
- 'Turn on alarm if the value of ON = true
- If fpBoolean1(0).Value = 1 Then
- intro.fpClock1.AlarmTime = AlarmClock.CurrentTime
- End If
-
- intro.Show
- Me.Hide
- End Sub
-
- Sub Command2_Click ()
- 'Cancel
- intro.Show
- Me.Hide
- End Sub
-
- Sub Form_Load ()
- 'Initialize alarm clock to display the current time when loaded
- centerform Me
- fpClock1.CurrentTime = AlarmClock.CurrentTime
- 'Initialize alarm ON
- fpBoolean1(0).Value = 1
- End Sub
-
- Sub fpBoolean1_Change (index As Integer)
- 'If alarm is on then display the alarm on icon
- 'Else display alarm off icon
- If index = 0 Then
- If fpBoolean1(0).Value = 1 Then
- fpBinary2.Picture = LoadPicture(app.Path + "\alarm.ico")
- Else
- fpBinary2.Picture = LoadPicture(app.Path + "\noalarm.ico")
- End If
- End If
- End Sub
-
-