home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_BAS / RDBLIB.ZIP / RBPROBRP.FRM < prev    next >
Text File  |  1994-02-05  |  14KB  |  455 lines

  1. VERSION 2.00
  2. Begin Form RBProbRpt 
  3.    BackColor       =   &H00FFFFFF&
  4.    Caption         =   "Problem Report Form"
  5.    ClientHeight    =   4020
  6.    ClientLeft      =   1095
  7.    ClientTop       =   1485
  8.    ClientWidth     =   7365
  9.    Height          =   4425
  10.    Icon            =   RBPROBRP.FRX:0000
  11.    Left            =   1035
  12.    LinkTopic       =   "Form1"
  13.    ScaleHeight     =   4020
  14.    ScaleWidth      =   7365
  15.    Top             =   1140
  16.    Width           =   7485
  17.    Begin CommonDialog CMDialog1 
  18.       Left            =   9060
  19.       Top             =   6120
  20.    End
  21.    Begin TextBox TxSystem 
  22.       BackColor       =   &H00FFFFFF&
  23.       Height          =   315
  24.       Left            =   1920
  25.       TabIndex        =   28
  26.       Tag             =   "Enter the name of the system that had the problem"
  27.       Top             =   1320
  28.       Width           =   3135
  29.    End
  30.    Begin TextBox TxVer 
  31.       BackColor       =   &H00FFFFFF&
  32.       Height          =   315
  33.       Left            =   6600
  34.       TabIndex        =   27
  35.       Tag             =   "Enter the version number of the system you are using"
  36.       Top             =   1320
  37.       Width           =   2835
  38.    End
  39.    Begin SSCommand BtnSelPrtr 
  40.       Caption         =   "Select Printer"
  41.       Font3D          =   0  'None
  42.       Height          =   315
  43.       Left            =   540
  44.       TabIndex        =   26
  45.       Top             =   6180
  46.       Width           =   2850
  47.    End
  48.    Begin Frame Frame3 
  49.       Caption         =   "Describe the function being performed, the actions leading up to the error and the problem that occurred"
  50.       Height          =   2415
  51.       Left            =   120
  52.       TabIndex        =   25
  53.       Top             =   3720
  54.       Width           =   9375
  55.       Begin TextBox TxtProblem 
  56.          Height          =   2115
  57.          Left            =   60
  58.          MultiLine       =   -1  'True
  59.          ScrollBars      =   2  'Vertical
  60.          TabIndex        =   13
  61.          Tag             =   "Enter the description of the problem and the actions leading up to the problem"
  62.          Top             =   240
  63.          Width           =   9255
  64.       End
  65.    End
  66.    Begin Frame Frame2 
  67.       Caption         =   "Effect Of Problem"
  68.       Height          =   915
  69.       Left            =   120
  70.       TabIndex        =   24
  71.       Top             =   2760
  72.       Width           =   9375
  73.       Begin TextBox Text1 
  74.          BackColor       =   &H00FFFFFF&
  75.          Height          =   315
  76.          Index           =   4
  77.          Left            =   2400
  78.          TabIndex        =   12
  79.          Tag             =   "Enter the description of the other effect of this problem"
  80.          Top             =   540
  81.          Width           =   6855
  82.       End
  83.       Begin CheckBox Check1 
  84.          Caption         =   "Other (Please Specify)"
  85.          Height          =   375
  86.          Index           =   4
  87.          Left            =   120
  88.          TabIndex        =   11
  89.          Tag             =   "Check this box if there is some other effect with this problem"
  90.          Top             =   480
  91.          Width           =   2295
  92.       End
  93.       Begin CheckBox Check1 
  94.          Caption         =   "Can Use System, But Functionality Is Limited"
  95.          Height          =   225
  96.          Index           =   3
  97.          Left            =   4500
  98.          TabIndex        =   10
  99.          Tag             =   "Check this box if you can use the system, but the functionality of the system is limited because of this problem"
  100.          Top             =   240
  101.          Width           =   4575
  102.       End
  103.       Begin CheckBox Check1 
  104.          Caption         =   "Can't use this function"
  105.          Height          =   225
  106.          Index           =   2
  107.          Left            =   2040
  108.          TabIndex        =   9
  109.          Tag             =   "Check this box if you can't use this function because of the problem"
  110.          Top             =   240
  111.          Width           =   2295
  112.       End
  113.       Begin CheckBox Check1 
  114.          Caption         =   "Can't Use System"
  115.          Height          =   225
  116.          Index           =   1
  117.          Left            =   120
  118.          TabIndex        =   8
  119.          Tag             =   "Check this box if you can't use the system because of this problem"
  120.          Top             =   240
  121.          Width           =   1875
  122.       End
  123.    End
  124.    Begin Frame Frame1 
  125.       Caption         =   "Type of Problem"
  126.       Height          =   915
  127.       Left            =   120
  128.       TabIndex        =   23
  129.       Top             =   1800
  130.       Width           =   9375
  131.       Begin CheckBox Check1 
  132.          Caption         =   "Problem is Repeatable (Consistent)"
  133.          Height          =   255
  134.          Index           =   0
  135.          Left            =   5880
  136.          TabIndex        =   5
  137.          Tag             =   "Check this box if the problem is repeatable (occurs consistently)"
  138.          Top             =   240
  139.          Width           =   3375
  140.       End
  141.       Begin TextBox Text1 
  142.          BackColor       =   &H00FFFFFF&
  143.          Height          =   285
  144.          Index           =   3
  145.          Left            =   2400
  146.          TabIndex        =   7
  147.          Tag             =   "Enter the description of the type of problem"
  148.          Top             =   510
  149.          Width           =   6855
  150.       End
  151.       Begin OptionButton Option1 
  152.          Caption         =   "Other (Please Specify)"
  153.          Height          =   255
  154.          Index           =   2
  155.          Left            =   120
  156.          TabIndex        =   6
  157.          Tag             =   "Select this option if some other type of problem occurred"
  158.          Top             =   480
  159.          Width           =   2295
  160.       End
  161.       Begin OptionButton Option1 
  162.          Caption         =   "System Didn't Work As Expected"
  163.          Height          =   255
  164.          Index           =   1
  165.          Left            =   2700
  166.          TabIndex        =   4
  167.          Tag             =   "Select this option if the system didn't work as expected"
  168.          Top             =   240
  169.          Width           =   3195
  170.       End
  171.       Begin OptionButton Option1 
  172.          Caption         =   "System Ended Abnormally"
  173.          Height          =   195
  174.          Index           =   0
  175.          Left            =   120
  176.          TabIndex        =   3
  177.          Tag             =   "Select this option if the system terminated abnormally"
  178.          Top             =   240
  179.          Width           =   2535
  180.       End
  181.    End
  182.    Begin SSPanel cmsg 
  183.       Align           =   2  'Align Bottom
  184.       Alignment       =   1  'Left Justify - MIDDLE
  185.       BackColor       =   &H00C0C0C0&
  186.       BevelInner      =   1  'Inset
  187.       FloodShowPct    =   0   'False
  188.       Font3D          =   0  'None
  189.       ForeColor       =   &H00FF0000&
  190.       Height          =   315
  191.       Left            =   0
  192.       TabIndex        =   20
  193.       Top             =   3705
  194.       Width           =   7365
  195.    End
  196.    Begin SSCommand BtnCancel 
  197.       Caption         =   "Exit"
  198.       Font3D          =   0  'None
  199.       Height          =   315
  200.       Left            =   6180
  201.       TabIndex        =   15
  202.       Top             =   6180
  203.       Width           =   2850
  204.    End
  205.    Begin SSCommand BtnPrint 
  206.       Caption         =   "Print Problem Report"
  207.       Font3D          =   0  'None
  208.       Height          =   315
  209.       Left            =   3360
  210.       TabIndex        =   14
  211.       Top             =   6180
  212.       Width           =   2850
  213.    End
  214.    Begin SSPanel Panel3D1 
  215.       Align           =   1  'Align Top
  216.       BackColor       =   &H00FFFFFF&
  217.       Caption         =   "Problem Report Form"
  218.       Font3D          =   1  'Raised w/light shading
  219.       FontBold        =   -1  'True
  220.       FontItalic      =   0   'False
  221.       FontName        =   "MS Sans Serif"
  222.       FontSize        =   18
  223.       FontStrikethru  =   0   'False
  224.       FontUnderline   =   0   'False
  225.       ForeColor       =   &H00FF0000&
  226.       Height          =   435
  227.       Left            =   0
  228.       TabIndex        =   21
  229.       Top             =   0
  230.       Width           =   7365
  231.    End
  232.    Begin TextBox Text1 
  233.       BackColor       =   &H00FFFFFF&
  234.       Height          =   315
  235.       Index           =   2
  236.       Left            =   6600
  237.       TabIndex        =   2
  238.       Tag             =   "Enter the name of the contact person"
  239.       Top             =   960
  240.       Width           =   2835
  241.    End
  242.    Begin TextBox Text1 
  243.       BackColor       =   &H00FFFFFF&
  244.       Height          =   315
  245.       Index           =   1
  246.       Left            =   1920
  247.       TabIndex        =   1
  248.       Tag             =   "Enter the name of your organization"
  249.       Top             =   960
  250.       Width           =   3135
  251.    End
  252.    Begin TextBox Text1 
  253.       BackColor       =   &H00FFFFFF&
  254.       Height          =   315
  255.       Index           =   0
  256.       Left            =   1920
  257.       TabIndex        =   0
  258.       Tag             =   "Enter the name of the person who is reporting the problem"
  259.       Top             =   540
  260.       Width           =   4575
  261.    End
  262.    Begin Label Label1 
  263.       AutoSize        =   -1  'True
  264.       BackColor       =   &H00FFFFFF&
  265.       Caption         =   "System..................."
  266.       ForeColor       =   &H00000000&
  267.       Height          =   195
  268.       Index           =   5
  269.       Left            =   120
  270.       TabIndex        =   30
  271.       Top             =   1440
  272.       Width           =   1755
  273.    End
  274.    Begin Label Label1 
  275.       AutoSize        =   -1  'True
  276.       BackColor       =   &H00FFFFFF&
  277.       Caption         =   "Version..........."
  278.       ForeColor       =   &H00000000&
  279.       Height          =   195
  280.       Index           =   3
  281.       Left            =   5160
  282.       TabIndex        =   29
  283.       Top             =   1380
  284.       Width           =   1305
  285.    End
  286.    Begin Label Label1 
  287.       AutoSize        =   -1  'True
  288.       BackColor       =   &H00FFFFFF&
  289.       Caption         =   "On"
  290.       ForeColor       =   &H00000000&
  291.       Height          =   195
  292.       Index           =   4
  293.       Left            =   6600
  294.       TabIndex        =   22
  295.       Top             =   600
  296.       Width           =   255
  297.    End
  298.    Begin Label Label1 
  299.       AutoSize        =   -1  'True
  300.       BackColor       =   &H00FFFFFF&
  301.       Caption         =   "Problem Reported By"
  302.       ForeColor       =   &H00000000&
  303.       Height          =   195
  304.       Index           =   2
  305.       Left            =   60
  306.       TabIndex        =   19
  307.       Top             =   600
  308.       Width           =   1800
  309.    End
  310.    Begin Label Label1 
  311.       AutoSize        =   -1  'True
  312.       BackColor       =   &H00FFFFFF&
  313.       Caption         =   "Contact Person"
  314.       ForeColor       =   &H00000000&
  315.       Height          =   195
  316.       Index           =   1
  317.       Left            =   5160
  318.       TabIndex        =   18
  319.       Top             =   1020
  320.       Width           =   1320
  321.    End
  322.    Begin Label Label1 
  323.       AutoSize        =   -1  'True
  324.       BackColor       =   &H00FFFFFF&
  325.       Caption         =   "Organization............"
  326.       ForeColor       =   &H00000000&
  327.       Height          =   195
  328.       Index           =   0
  329.       Left            =   60
  330.       TabIndex        =   17
  331.       Top             =   1080
  332.       Width           =   1800
  333.    End
  334.    Begin Label RBDateTime 
  335.       BackColor       =   &H00FFFFFF&
  336.       BorderStyle     =   1  'Fixed Single
  337.       Caption         =   "Date - Time"
  338.       Height          =   315
  339.       Left            =   6960
  340.       TabIndex        =   16
  341.       Top             =   540
  342.       Width           =   2535
  343.    End
  344. End
  345. Dim RB_Svframeheight As Integer
  346. Dim RB_Svtextheight As Integer
  347.  
  348. Sub BtnCancel_Click ()
  349.     Unload RBProbRpt
  350.  
  351. End Sub
  352.  
  353. Sub BtnPrint_Click ()
  354.     mousepointer = HOURGLASS
  355.     BtnPrint.Visible = False
  356.     BtnCancel.Visible = False
  357.     BtnSelPrtr.Visible = False
  358.     cmsg.Visible = False
  359.     RB_Svframeheight = Frame3.Height
  360.     RB_Svtextheight = TxtProblem.Height
  361.     Frame3.Height = cmsg.Top - Frame3.Top - 100
  362.     TxtProblem.Height = Frame3.Height - 300
  363.     RBProbRpt.Refresh
  364.     junk = DoEvents()
  365.     mousepointer = HOURGLASS
  366.     RBProbRpt.PrintForm
  367.     mousepointer = HOURGLASS
  368.  
  369.     RBProbRpt.WindowState = MINIMIZED
  370.     RBErrFrm.WindowState = MINIMIZED
  371.     RBScrn.Show MODAL
  372.     RBErrFrm.WindowState = NORMAL
  373.     RBProbRpt.WindowState = MAXIMIZED
  374.     RBProbRpt.Visible = True
  375.  
  376.     Frame3.Height = RB_Svframeheight
  377.     TxtProblem.Height = RB_Svtextheight
  378.     BtnPrint.Visible = True
  379.     BtnCancel.Visible = True
  380.     BtnSelPrtr.Visible = True
  381.     cmsg.Visible = True
  382.     BtnCancel.SetFocus
  383.     RBProbRpt.Refresh
  384.  
  385.     mousepointer = DEFAULT
  386.  
  387. End Sub
  388.  
  389. Sub BtnSelPrtr_Click ()
  390.     CmDialog1.DialogTitle = "Problem Report Printer Setup"
  391.     CmDialog1.PrinterDefault = True
  392.     CmDialog1.Flags = PD_PRINTSETUP
  393.     CmDialog1.Action = 5
  394.  
  395. End Sub
  396.  
  397. Sub Check1_GotFocus (Index As Integer)
  398.     cmsg.Caption = Check1(Index).Tag
  399.     
  400. End Sub
  401.  
  402. Sub Check1_LostFocus (Index As Integer)
  403.     cmsg.Caption = ""
  404.  
  405. End Sub
  406.  
  407. Sub Form_Load ()
  408.     RBDateTime.Caption = Format$(Now, "MM/DD/YY - HH:MM:SS")
  409.     On Error Resume Next
  410.     txsystem.Text = rb_systemname
  411.     txver.Text = rb_version
  412.     On Error GoTo 0
  413.  
  414.  
  415. End Sub
  416.  
  417. Sub Option1_GotFocus (Index As Integer)
  418.     cmsg.Caption = Option1(Index).Tag
  419.  
  420. End Sub
  421.  
  422. Sub Option1_LostFocus (Index As Integer)
  423.     cmsg.Caption = ""
  424.  
  425. End Sub
  426.  
  427. Sub Text1_GotFocus (Index As Integer)
  428.     Text1(Index).BackColor = BLUE
  429.     Text1(Index).ForeColor = WHITE
  430.     cmsg.Caption = Text1(Index).Tag
  431.  
  432. End Sub
  433.  
  434. Sub Text1_LostFocus (Index As Integer)
  435.     Text1(Index).BackColor = WHITE
  436.     Text1(Index).ForeColor = BLACK
  437.     cmsg.Caption = ""
  438.  
  439. End Sub
  440.  
  441. Sub TxtProblem_GotFocus ()
  442.     TxtProblem.BackColor = BLUE
  443.     TxtProblem.ForeColor = WHITE
  444.     cmsg.Caption = TxtProblem.Tag
  445.  
  446. End Sub
  447.  
  448. Sub TxtProblem_LostFocus ()
  449.     TxtProblem.BackColor = WHITE
  450.     TxtProblem.ForeColor = BLACK
  451.     cmsg.Caption = ""
  452.  
  453. End Sub
  454.  
  455.