home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / cssProject190224302001.psc / Misc / ProjectAnalyzer / frmOptions.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2001-04-26  |  3.2 KB  |  101 lines

  1. VERSION 5.00
  2. Begin VB.Form frmOptions 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "Options"
  5.    ClientHeight    =   3195
  6.    ClientLeft      =   45
  7.    ClientTop       =   330
  8.    ClientWidth     =   3615
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   3195
  13.    ScaleWidth      =   3615
  14.    ShowInTaskbar   =   0   'False
  15.    StartUpPosition =   1  'CenterOwner
  16.    Begin VB.CommandButton cmdOK 
  17.       Caption         =   "OK"
  18.       Height          =   435
  19.       Left            =   1230
  20.       TabIndex        =   6
  21.       Top             =   2580
  22.       Width           =   1185
  23.    End
  24.    Begin VB.Frame Frame2 
  25.       Caption         =   "Threat window location..."
  26.       Height          =   795
  27.       Left            =   150
  28.       TabIndex        =   3
  29.       Top             =   1560
  30.       Width           =   3315
  31.       Begin VB.OptionButton optLoc 
  32.          Caption         =   "Right"
  33.          Height          =   315
  34.          Index           =   1
  35.          Left            =   1740
  36.          TabIndex        =   5
  37.          Top             =   330
  38.          Width           =   975
  39.       End
  40.       Begin VB.OptionButton optLoc 
  41.          Caption         =   "Bottom"
  42.          Height          =   315
  43.          Index           =   0
  44.          Left            =   540
  45.          TabIndex        =   4
  46.          Top             =   330
  47.          Value           =   -1  'True
  48.          Width           =   975
  49.       End
  50.    End
  51.    Begin VB.Frame Frame1 
  52.       Caption         =   "When opening project..."
  53.       Height          =   1245
  54.       Left            =   150
  55.       TabIndex        =   0
  56.       Top             =   150
  57.       Width           =   3315
  58.       Begin VB.CheckBox chkOptions 
  59.          Caption         =   "Automatically search for errors"
  60.          Height          =   255
  61.          Index           =   1
  62.          Left            =   180
  63.          TabIndex        =   2
  64.          Top             =   780
  65.          Width           =   2955
  66.       End
  67.       Begin VB.CheckBox chkOptions 
  68.          Caption         =   "Automatically search for threat words"
  69.          Height          =   255
  70.          Index           =   0
  71.          Left            =   180
  72.          TabIndex        =   1
  73.          Top             =   390
  74.          Width           =   2955
  75.       End
  76.    End
  77. Attribute VB_Name = "frmOptions"
  78. Attribute VB_GlobalNameSpace = False
  79. Attribute VB_Creatable = False
  80. Attribute VB_PredeclaredId = True
  81. Attribute VB_Exposed = False
  82. Option Explicit
  83. Dim intOptLoc As Integer
  84. Private Sub cmdOK_Click()
  85.     Unload Me
  86. End Sub
  87. Private Sub Form_Load()
  88.     Me.Icon = frmMain.Icon
  89.     chkOptions(0).Value = Val(GetINIData("Options", "ThreatOnOpen"))
  90.     chkOptions(1).Value = Val(GetINIData("Options", "ErrorsOnOpen"))
  91.     optLoc(Val(GetINIData("ThreatWords", "WindowLocation"))).Value = True
  92. End Sub
  93. Private Sub Form_Unload(Cancel As Integer)
  94.     WriteDataToINI "Options", "ThreatOnOpen", chkOptions(0).Value
  95.     WriteDataToINI "Options", "ErrorsOnOpen", chkOptions(1).Value
  96.     WriteDataToINI "ThreatWords", "WindowLocation", intOptLoc
  97. End Sub
  98. Private Sub optLoc_Click(Index As Integer)
  99.     intOptLoc = Index
  100. End Sub
  101.