home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
tool
/
various
/
vbrig
/
vbrigstd.fr_
/
vbrigstd.fr
Wrap
Text File
|
1994-09-01
|
5KB
|
199 lines
VERSION 2.00
Begin Form frmVBRig
BorderStyle = 3 'Fixed Double
Caption = "(vb/rig)"
ClientHeight = 3795
ClientLeft = 1800
ClientTop = 1485
ClientWidth = 5910
ClipControls = 0 'False
ControlBox = 0 'False
Height = 4200
Left = 1740
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3795
ScaleWidth = 5910
Top = 1140
Width = 6030
Begin TextBox txtStack
BorderStyle = 0 'None
Enabled = 0 'False
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Left = 1380
MultiLine = -1 'True
TabIndex = 6
Text = "(headings)"
Top = 1800
Width = 4335
End
Begin CommandButton cmdClose
Cancel = -1 'True
Caption = "&Close"
Default = -1 'True
Height = 375
Left = 180
TabIndex = 0
Top = 3240
Width = 1035
End
Begin ListBox lstStack
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1590
Left = 1380
MultiSelect = 1 'Simple
TabIndex = 1
Top = 2040
Width = 4335
End
Begin Label lblStack2
Alignment = 1 'Right Justify
Caption = "Stack"
Height = 195
Left = 60
TabIndex = 7
Top = 2220
Width = 1155
End
Begin Label lblStack1
Alignment = 1 'Right Justify
Caption = "Procedure"
Height = 195
Left = 60
TabIndex = 8
Top = 2040
Width = 1155
End
Begin Label lblErrMsg
Caption = "(error message)"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1035
Left = 1380
TabIndex = 5
Top = 480
Width = 4335
End
Begin Label lblErr
Caption = "(error number)"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Left = 1380
TabIndex = 3
Top = 180
Width = 1035
End
Begin Label lblExplanation
Alignment = 1 'Right Justify
Caption = "Explanation:"
Height = 195
Left = 60
TabIndex = 4
Top = 480
Width = 1155
End
Begin Label lblError
Alignment = 1 'Right Justify
Caption = "Error:"
Height = 195
Left = 60
TabIndex = 2
Top = 180
Width = 1155
End
End
'==========================================
'VB/Rig 1.0a - Copyright PC HELP-LINE, 1994
'==========================================
'VBRIGSTD.FRM - Standard Edition
'This form module must be included in every VB
'project that has been rigged for error trapping.
'It is used to display the text of error messages
'and the state of the procedure stack when a runtime
'error occurs.
'You are NOT licensed to re-distribute this module
'as source code, either in its original form or in
'modified form.
Option Explicit
Sub cmdClose_Click ()
Hide
End Sub
Sub Form_Load ()
Beep
End Sub
Sub lstStack_Click ()
'The following code is used to short-circuit any
'attempts to change the .Selected state of the
'procedure names displayed in the listbox. It would
'have been simpler to just disable the listbox, but
'that would have disabled the scroll bars, as well.
Dim nSub As Integer, nTop As Integer
Static tfRecursion As Integer
If tfRecursion Then
Else
tfRecursion = True
nTop = lstStack.TopIndex
For nSub = 0 To lstStack.ListCount - 1
If lstStack.ItemData(nSub) = True Then
lstStack.Selected(nSub) = True
Else
lstStack.Selected(nSub) = False
End If
Next
lstStack.ListIndex = -1
lstStack.TopIndex = nTop
tfRecursion = False
End If
End Sub
Sub lstStack_GotFocus ()
If Visible Then
cmdClose.SetFocus
End If
End Sub