home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form CalFrm
- Caption = "Calendar"
- ClientHeight = 1980
- ClientLeft = 2115
- ClientTop = 1395
- ClientWidth = 4335
- Height = 2385
- Left = 2055
- LinkTopic = "Form3"
- ScaleHeight = 1980
- ScaleWidth = 4335
- Top = 1050
- Width = 4455
- Begin VB.CommandButton Command2
- Caption = "Close"
- Height = 375
- Left = 120
- TabIndex = 7
- Top = 0
- Visible = 0 'False
- Width = 855
- End
- Begin VB.CommandButton Command1
- Caption = "Show Calendar"
- Height = 495
- Left = 2760
- TabIndex = 6
- Top = 240
- Width = 1455
- End
- Begin VB.OptionButton Option5
- Caption = "One Month"
- Height = 255
- Left = 240
- TabIndex = 5
- Top = 1560
- Width = 1215
- End
- Begin VB.OptionButton Option4
- Caption = "Three Months (Vertical)"
- Height = 255
- Left = 240
- TabIndex = 4
- Top = 1200
- Width = 2055
- End
- Begin VB.OptionButton Option3
- Caption = "Three Months (Horizontal)"
- Height = 255
- Left = 240
- TabIndex = 3
- Top = 840
- Width = 2175
- End
- Begin VB.OptionButton Option2
- Caption = "Six Months"
- Height = 255
- Left = 240
- TabIndex = 2
- Top = 480
- Width = 1095
- End
- Begin VB.OptionButton Option1
- Caption = "Full Year"
- Height = 255
- Left = 240
- TabIndex = 1
- Top = 120
- Value = -1 'True
- Width = 1095
- End
- Begin VB.Label Label1
- Caption = "Double-click a date or select a date and click the Close button."
- Height = 375
- Left = 1080
- TabIndex = 8
- Top = 0
- Visible = 0 'False
- Width = 2295
- End
- Begin PVCalendarLib.PVCalendar Calendar1
- Height = 7485
- Left = 120
- TabIndex = 0
- Top = 480
- Visible = 0 'False
- Width = 9540
- _Version = 65536
- _ExtentX = 16828
- _ExtentY = 13203
- _StockProps = 228
- Appearance = 1
- Format = 4
- SundayColor = 255
- End
- Attribute VB_Name = "CalFrm"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Calendar1_DblClick()
- DateFrm.DateEdit1.value = Calendar1.value
- Unload CalFrm
- End Sub
- Private Sub Command1_Click()
- If (Option1.value) = True Then
- Rem full year
- Calendar1.Format = 4
- CalFrm.Width = 9900
- CalFrm.Height = 8500
- End If
- If (Option2.value) = True Then
- Rem half year
- Calendar1.Format = 3
- CalFrm.Width = 9900
- CalFrm.Height = 4800
- End If
- If (Option3.value) = True Then
- Rem qtr year (horz)
- Calendar1.Format = 1
- CalFrm.Width = 9900
- CalFrm.Height = 3000
- End If
- If (Option4.value) = True Then
- Rem qtr year (vert)
- Calendar1.Format = 2
- CalFrm.Width = 3500
- CalFrm.Height = 6700
- End If
- If (Option5.value) = True Then
- Rem single month
- Calendar1.Format = 0
- CalFrm.Width = 3500
- CalFrm.Height = 3000
- End If
- Command1.Visible = False
- Option1.Visible = False
- Option2.Visible = False
- Option3.Visible = False
- Option4.Visible = False
- Option5.Visible = False
- Calendar1.Visible = True
- Command2.Visible = True
- Label1.Visible = True
- End Sub
- Private Sub Command2_Click()
- DateFrm.DateEdit1.value = Calendar1.value
- Unload CalFrm
- End Sub
- Private Sub Form_Initialize()
- Calendar1.Format = 0
- Calendar1.value = DateFrm.DateEdit1.value
- Command1.Visible = True
- Option1.Visible = True
- Option2.Visible = True
- Option3.Visible = True
- Option4.Visible = True
- Option5.Visible = True
- Calendar1.Visible = False
- Command2.Visible = False
- Label1.Visible = False
- End Sub
- Private Sub Form_Load()
- Calendar1.Format = 0
- Calendar1.value = DateFrm.DateEdit1.value
- Command1.Visible = True
- Option1.Visible = True
- Option2.Visible = True
- Option3.Visible = True
- Option4.Visible = True
- Option5.Visible = True
- Calendar1.Visible = False
- Command2.Visible = False
- Label1.Visible = False
- End Sub
-