home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form FBear
- BackColor = &H00000000&
- Caption = "BioBears"
- ClientHeight = 2955
- ClientLeft = 120
- ClientTop = 1545
- ClientWidth = 9360
- Height = 3360
- Icon = BEARS.FRX:0000
- Left = 60
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 2955
- ScaleWidth = 9360
- Top = 1200
- Width = 9480
- Begin CommandButton QuitButt
- Caption = "Quit"
- Height = 735
- Left = 8040
- TabIndex = 1
- Top = 2160
- Width = 1215
- End
- Begin CommandButton CAbout
- Caption = "Calvin And Bears"
- Height = 735
- Left = 6000
- TabIndex = 11
- Top = 2160
- Width = 1935
- End
- Begin CommandButton CRythm
- Caption = "BioRythm"
- Height = 735
- Left = 4440
- TabIndex = 10
- Top = 2160
- Width = 1455
- End
- Begin Frame FBorn
- BackColor = &H00000000&
- Height = 855
- Left = 1920
- TabIndex = 6
- Top = 2040
- Width = 2415
- Begin TextBox TBorn
- BackColor = &H00000000&
- BorderStyle = 0 'None
- ForeColor = &H00FFFFFF&
- Height = 255
- Left = 480
- TabIndex = 8
- Top = 480
- Width = 1095
- End
- Begin VScrollBar VBorn
- Height = 495
- Left = 120
- TabIndex = 9
- Top = 240
- Width = 255
- End
- Begin Label LBorn
- BackColor = &H00000000&
- Caption = "You were born on..."
- ForeColor = &H00FFFFFF&
- Height = 255
- Left = 480
- TabIndex = 7
- Top = 240
- Width = 1815
- End
- End
- Begin Frame FToday
- BackColor = &H00000000&
- Height = 855
- Left = 120
- TabIndex = 2
- Top = 2040
- Width = 1695
- Begin TextBox TToday
- BackColor = &H00000000&
- BorderStyle = 0 'None
- ForeColor = &H00FFFFFF&
- Height = 255
- Left = 480
- TabIndex = 4
- Top = 480
- Width = 1095
- End
- Begin VScrollBar VToday
- Height = 495
- Left = 120
- TabIndex = 3
- Top = 240
- Width = 255
- End
- Begin Label LToday
- BackColor = &H00000000&
- Caption = "Today is..."
- ForeColor = &H00FFFFFF&
- Height = 255
- Left = 480
- TabIndex = 5
- Top = 240
- Width = 1095
- End
- End
- Begin PictureBox PBears
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- BorderStyle = 0 'None
- ForeColor = &H00000000&
- Height = 1890
- Left = 120
- Picture = BEARS.FRX:0302
- ScaleHeight = 66.903
- ScaleMode = 0 'User
- ScaleWidth = 105.029
- TabIndex = 0
- Top = 120
- Width = 9120
- End
- Sub CAbout_Click ()
- PBears.Cls
- End Sub
- Sub Command1_Click ()
- End
- End Sub
- Sub CRythm_Click ()
- DaysOld% = DateValue(TToday.Text) - DateValue(TBorn.Text) - 21
- I% = 0
- OldI% = 0
- PhysPos% = 100 * ((DaysOld% + I%) / 23 - Int((DaysOld% + I%) / 23))
- PhysPY1% = Sin(PhysPos% / 100 * 3.14159 * 2) * 25 + 33
- EmotPos% = 100 * ((DaysOld% + I%) / 28 - Int((DaysOld% + I%) / 28))
- EmotPY1% = Sin(EmotPos% / 100 * 3.14159 * 2) * 25 + 33
- MentPos% = 100 * ((DaysOld% + I%) / 33 - Int((DaysOld% + I%) / 33))
- MentPY1% = Sin(MentPos% / 100 * 3.14149 * 2) * 25 + 33
- For I% = 0 To PBears.ScaleWidth
-
- PBears.DrawWidth = 1
- PBears.Line (OldI%, 0)-(I%, 66.902), QBColor(0), BF
-
- PBears.DrawWidth = 3
-
- Week% = I% Mod 7
- If Week% = 0 And I% <> 21 Then
- PBears.Line (I%, 0)-(I%, 66.902), QBColor(7)
- End If
- If I% = 21 Then
- PBears.DrawWidth = 4
- PBears.Line (I%, 0)-(I%, 66.902), QBColor(12)
- End If
- PBears.DrawStyle = 2
- PBears.PSet (I%, 33), QBColor(13)
-
- PBears.DrawWidth = 2
- PBears.DrawStyle = 0
- PhysPos% = 100 * ((DaysOld% + I%) / 23 - Int((DaysOld% + I%) / 23))
- PhysPY2% = Sin(PhysPos% / 100 * 3.14159 * 2) * 25 + 33
- PBears.Line (OldI%, PhysPY1%)-(I%, PhysPY2%), QBColor(10)
- PhysPY1% = PhysPY2%
-
- EmotPos% = 100 * ((DaysOld% + I%) / 28 - Int((DaysOld% + I%) / 28))
- EmotPY2% = Sin(EmotPos% / 100 * 3.14159 * 2) * 25 + 33
- PBears.Line (OldI%, EmotPY1%)-(I%, EmotPY2%), QBColor(11)
- EmotPY1% = EmotPY2%
-
- MentPos% = 100 * ((DaysOld% + I%) / 33 - Int((DaysOld% + I%) / 33))
- MentPY2% = Sin(MentPos% / 100 * 3.14149 * 2) * 25 + 33
- PBears.Line (OldI%, MentPY1%)-(I%, MentPY2%), QBColor(14)
- MentPY1% = MentPY2%
-
- OldI% = I%
- If I% = 1 Then
- PBears.Line (0, 0)-(0, 66.902), QBColor(7)
- End If
- Next I%
- PBears.DrawWidth = 1
- PBears.Line (3, 15)-(19, 52), QBColor(8), BF
- PBears.Line (2, 13)-(18, 50), QBColor(1), BF
- PBears.Line (2, 13)-(18, 50), QBColor(15), B
- PBears.Line (2, 24)-(18, 24), QBColor(15)
- PBears.ForeColor = QBColor(15)
- PBears.CurrentX = 3
- PBears.CurrentY = 15
- PBears.Print "Today"
- PBears.CurrentX = 3
- PBears.CurrentY = 26
- PBears.Print "Physical"
- PBears.CurrentX = 3
- PBears.CurrentY = 33
- PBears.Print "Emotional"
- PBears.CurrentX = 3
- PBears.CurrentY = 40
- PBears.Print "Mental"
- PBears.DrawWidth = 3
- PBears.Line (14, 19)-(17, 19), QBColor(12)
- PBears.Line (14, 30)-(17, 30), QBColor(10)
- PBears.Line (14, 37)-(17, 37), QBColor(11)
- PBears.Line (14, 44)-(17, 44), QBColor(14)
- End Sub
- Sub Form_Load ()
- TToday.Text = Date$
- TBorn.Text = "2-13-1962"
- VToday.Value = DateValue(TToday.Text) - 11000
- VBorn.Value = DateValue(TBorn.Text) - 11000
- End Sub
- Sub PRythm_DblClick ()
- End
- End Sub
- Sub QuitButt_Click ()
- End
- End Sub
- Sub VBorn_Change ()
- Dim AdjDate As Long
- AdjDate = VBorn.Value
- TBorn.Text = LTrim$(Str$(Month(AdjDate + 11000))) + "-" + LTrim$(Str$(Day(AdjDate + 11000))) + "-" + LTrim$(Str$(Year(AdjDate + 11000)))
- End Sub
- Sub VToday_Change ()
- Dim AdjDate As Long
- AdjDate = VToday.Value
- TToday.Text = LTrim$(Str$(Month(AdjDate + 11000))) + "-" + LTrim$(Str$(Day(AdjDate + 11000))) + "-" + LTrim$(Str$(Year(AdjDate + 11000)))
- End Sub
-