home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmched
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "Editor Setup"
- ClientHeight = 2028
- ClientLeft = 2376
- ClientTop = 3096
- ClientWidth = 5292
- ClipControls = 0 'False
- Height = 2448
- Left = 2328
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2028
- ScaleWidth = 5292
- Top = 2724
- Width = 5388
- Begin CommandButton cmdcancel
- Cancel = -1 'True
- Caption = "C&ancel"
- Height = 372
- Left = 3000
- TabIndex = 3
- Top = 1440
- Width = 972
- End
- Begin CommandButton cmdok
- Caption = "&OK"
- Default = -1 'True
- Height = 372
- Left = 1680
- TabIndex = 2
- Top = 1440
- Width = 972
- End
- Begin TextBox txtexted
- BackColor = &H00C0C0C0&
- Enabled = 0 'False
- Height = 372
- Left = 1200
- TabIndex = 1
- Top = 720
- Width = 3372
- End
- Begin CheckBox chkexted
- BackColor = &H00C0C0C0&
- Caption = "&Use External Editor"
- Height = 372
- Left = 840
- TabIndex = 0
- Top = 240
- Width = 3132
- End
- Option Explicit
- Sub chkexted_Click ()
- If chkexted.Value = 0 Then
- txtexted.Enabled = False
- Else
- txtexted.Enabled = True
- End If
- End Sub
- Sub cmdcancel_Click ()
- frmched.Hide
- End Sub
- Sub cmdok_Click ()
- If chkexted.Value Then
- SetINI "Editor", "UseExternalEditor", "Y"
- Else
- SetINI "Editor", "UseExternalEditor", "N"
- End If
- SetINI "Editor", "ExternalEditor", txtexted.Text
- frmched.Hide
- End Sub
- Sub Form_Load ()
- left = (screen.Width - frmched.Width) / 2
- top = (screen.Height - frmched.Height) / 2
- If UCase$(GetINI("Editor", "UseExternalEditor", "Y")) = "Y" Then
- chkexted.Value = 1
- txtexted.Enabled = True
- Else
- chkexted.Value = 0
- txtexted.Enabled = False
- End If
- txtexted = GetINI("Editor", "ExternalEditor", "notepad.exe")
- End Sub
-