home *** CD-ROM | disk | FTP | other *** search
- Type TimedCheckBox From CheckBox
- Dim timer As New Timer
- Event Start
- Event Finish
-
- ' METHODS for object: TimedCheckBox
- Sub Click()
- If Not timer.Enabled And Value = "Checked" Then
- SendEvent Start
- timer.Enabled = True
- End If
- End Sub
-
- Sub timer_Timeout()
- SendEvent Finish
- Value = "Unchecked"
- timer.Enabled = False
- End Sub
-
- End Type
-
- Type TimedCheckBoxForm From SampleMasterForm
- Dim TimedCheckBox1 As New TimedCheckBox
-
- ' METHODS for object: TimedCheckBoxForm
- Sub TimedCheckBox1_Finish
- Show
- End Sub
-
- Sub TimedCheckBox1_Start
- Hide
- End Sub
-
- End Type
-
- Begin Code
- ' Reconstruction commands for object: TimedCheckBox
- '
- With TimedCheckBox
- .Move(0, 0, 0, 0)
- With .timer
- End With 'TimedCheckBox.timer
- End With 'TimedCheckBox
- ' Reconstruction commands for object: TimedCheckBoxForm
- '
- With TimedCheckBoxForm
- .Caption := "Timed CheckBox Form"
- .Move(7515, 2625, 4995, 4005)
- .SampleDir := "C:\ENVELOP\bootcamp\basic\timedchk\"
- .SampleName := "timedchk"
- With .TimedCheckBox1
- .Caption := "TimedCheckBox1"
- .ZOrder := 1
- .Move(1350, 1350, 2100, 450)
- With .timer
- End With 'TimedCheckBoxForm.TimedCheckBox1.timer
- End With 'TimedCheckBoxForm.TimedCheckBox1
- With .helpfile
- .FileName := "C:\ENVELOP\bootcamp\basic\timedchk\timedchk.hlp"
- End With 'TimedCheckBoxForm.helpfile
- End With 'TimedCheckBoxForm
- End Code
-