home *** CD-ROM | disk | FTP | other *** search
- Type CheckBoxMasterForm From SampleMasterForm
- Dim FontWelcome As New Font
- Dim lblWelcome As New Label
- Dim chkBold As New CheckBox
- Dim chkItalic As New CheckBox
- Dim chkUnderline As New CheckBox
- Dim chkStrikethru As New CheckBox
-
- ' METHODS for object: CheckBoxMasterForm
- Sub chkBold_Click()
- If chkBold.Value = 1 Then
- FontWelcome.Bold = "True"
- Else
- FontWelcome.Bold = "False"
- End If
- End Sub
-
- Sub chkItalic_Click()
- If chkItalic.Value = 1 Then
- FontWelcome.Italic = "True"
- Else
- FontWelcome.Italic = "False"
- End If
- End Sub
-
- Sub chkStrikethru_Click()
- If chkStrikethru.Value = 1 Then
- FontWelcome.Strikethru = "True"
- Else
- FontWelcome.Strikethru = "False"
- End If
- End Sub
-
- Sub chkUnderline_Click()
- If chkUnderline.Value = 1 Then
- FontWelcome.Underline = "True"
- Else
- FontWelcome.Underline = "False"
- End If
- End Sub
-
- Sub ResetApplication_Click ()
-
- ' Setup checkbox defaults
- chkBold.Value = 0
- chkItalic.Value = 0
- chkStrikethru.Value = 0
- chkUnderline.Value = 0
-
- ' Setup Welcome label font defaults
- FontWelcome.FaceName = "MS Sans Serif"
- FontWelcome.Bold = "False"
- FontWelcome.Italic = "False"
- FontWelcome.Strikethru = "False"
- FontWelcome.Underline = "False"
-
- End Sub
-
- End Type
-
- Begin Code
- ' Reconstruction commands for object: CheckBoxMasterForm
- '
- With CheckBoxMasterForm
- .Caption := "CheckBox Demonstration"
- .Move(4650, 2160, 6420, 4125)
- .SampleDir := "C:\ENVELOP\bootcamp\basic\checkbox\"
- .SampleName := "checkbox"
- With .FontWelcome
- .FaceName := "MS Sans Serif"
- .Size := 18.000000
- .Bold := False
- .Italic := False
- .Strikethru := False
- End With 'CheckBoxMasterForm.FontWelcome
- With .lblWelcome
- .Caption := "Welcome to the CheckBox Demonstration!"
- .Font := CheckBoxMasterForm.FontWelcome
- .ZOrder := 1
- .Move(300, 300, 5700, 900)
- .Alignment := "Center"
- End With 'CheckBoxMasterForm.lblWelcome
- With .chkBold
- .Caption := " 1. Toggles font Bold property."
- .ForeColor := 13107200
- .ZOrder := 2
- .Move(900, 1500, 3900, 300)
- End With 'CheckBoxMasterForm.chkBold
- With .chkItalic
- .Caption := " 2. Toggles font Italic property."
- .ForeColor := 13107200
- .ZOrder := 3
- .Move(900, 1950, 3900, 300)
- End With 'CheckBoxMasterForm.chkItalic
- With .chkUnderline
- .Caption := " 3. Toggles font Underline property."
- .ForeColor := 13107200
- .ZOrder := 4
- .Move(900, 2400, 3900, 300)
- End With 'CheckBoxMasterForm.chkUnderline
- With .chkStrikethru
- .Caption := " 4. Toggles font Strikethru property."
- .ForeColor := 13107200
- .ZOrder := 5
- .Move(900, 2850, 3900, 300)
- End With 'CheckBoxMasterForm.chkStrikethru
- With .helpfile
- .FileName := "C:\ENVELOP\bootcamp\basic\checkbox\checkbox.hlp"
- End With 'CheckBoxMasterForm.helpfile
- End With 'CheckBoxMasterForm
- End Code
-