home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / PVb5.0 / VB / TEMPLATE / FORMS / OPTION.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-02-17  |  7.6 KB  |  233 lines

  1. VERSION 5.00
  2. Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.1#0"; "COMCTL32.OCX"
  3. Begin VB.Form frmOptions 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "
  6.    ClientHeight    =   4920
  7.    ClientLeft      =   2565
  8.    ClientTop       =   1500
  9.    ClientWidth     =   6150
  10.    Icon            =   "option.frx":0000
  11.    KeyPreview      =   -1  'True
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   4920
  16.    ScaleWidth      =   6150
  17.    ShowInTaskbar   =   0   'False
  18.    StartUpPosition =   2  '
  19.    Begin VB.PictureBox picOptions 
  20.       BorderStyle     =   0  'None
  21.       Height          =   3780
  22.       Index           =   3
  23.       Left            =   -20000
  24.       ScaleHeight     =   3780
  25.       ScaleWidth      =   5685
  26.       TabIndex        =   8
  27.       TabStop         =   0   'False
  28.       Top             =   480
  29.       Width           =   5685
  30.       Begin VB.Frame fraSample4 
  31.          Caption         =   "
  32.          Height          =   1785
  33.          Left            =   2100
  34.          TabIndex        =   11
  35.          Top             =   840
  36.          Width           =   2055
  37.       End
  38.    End
  39.    Begin VB.PictureBox picOptions 
  40.       BorderStyle     =   0  'None
  41.       Height          =   3780
  42.       Index           =   2
  43.       Left            =   -20000
  44.       ScaleHeight     =   3780
  45.       ScaleWidth      =   5685
  46.       TabIndex        =   7
  47.       TabStop         =   0   'False
  48.       Top             =   480
  49.       Width           =   5685
  50.       Begin VB.Frame fraSample3 
  51.          Caption         =   "
  52.          Height          =   1785
  53.          Left            =   1545
  54.          TabIndex        =   10
  55.          Top             =   675
  56.          Width           =   2055
  57.       End
  58.    End
  59.    Begin VB.PictureBox picOptions 
  60.       BorderStyle     =   0  'None
  61.       Height          =   3780
  62.       Index           =   1
  63.       Left            =   -20000
  64.       ScaleHeight     =   3780
  65.       ScaleWidth      =   5685
  66.       TabIndex        =   6
  67.       TabStop         =   0   'False
  68.       Top             =   480
  69.       Width           =   5685
  70.       Begin VB.Frame fraSample2 
  71.          Caption         =   "
  72.          Height          =   1785
  73.          Left            =   645
  74.          TabIndex        =   9
  75.          Top             =   300
  76.          Width           =   2055
  77.       End
  78.    End
  79.    Begin VB.PictureBox picOptions 
  80.       BorderStyle     =   0  'None
  81.       Height          =   3780
  82.       Index           =   0
  83.       Left            =   210
  84.       ScaleHeight     =   3780
  85.       ScaleWidth      =   5685
  86.       TabIndex        =   4
  87.       TabStop         =   0   'False
  88.       Top             =   480
  89.       Width           =   5685
  90.       Begin VB.Frame fraSample1 
  91.          Caption         =   "
  92.          Height          =   1785
  93.          Left            =   210
  94.          TabIndex        =   5
  95.          Top             =   255
  96.          Width           =   2055
  97.       End
  98.    End
  99.    Begin VB.CommandButton cmdApply 
  100.       Caption         =   "
  101.       Height          =   375
  102.       Left            =   4920
  103.       TabIndex        =   3
  104.       Top             =   4455
  105.       Width           =   1095
  106.    End
  107.    Begin VB.CommandButton cmdCancel 
  108.       Cancel          =   -1  'True
  109.       Caption         =   "
  110.       Height          =   375
  111.       Left            =   3720
  112.       TabIndex        =   2
  113.       Top             =   4455
  114.       Width           =   1095
  115.    End
  116.    Begin VB.CommandButton cmdOK 
  117.       Caption         =   "
  118.       Height          =   375
  119.       Left            =   2490
  120.       TabIndex        =   1
  121.       Top             =   4455
  122.       Width           =   1095
  123.    End
  124.    Begin ComctlLib.TabStrip tbsOptions 
  125.       Height          =   4245
  126.       Left            =   105
  127.       TabIndex        =   0
  128.       Top             =   120
  129.       Width           =   5895
  130.       _ExtentX        =   10398
  131.       _ExtentY        =   7488
  132.       _Version        =   327680
  133.       BeginProperty Tabs {0713E432-850A-101B-AFC0-4210102A8DA7} 
  134.          NumTabs         =   4
  135.          BeginProperty Tab1 {0713F341-850A-101B-AFC0-4210102A8DA7} 
  136.             Caption         =   "
  137.             Key             =   "Group1"
  138.             Object.Tag             =   ""
  139.             Object.ToolTipText     =   "
  140.             ImageVarType    =   2
  141.          EndProperty
  142.          BeginProperty Tab2 {0713F341-850A-101B-AFC0-4210102A8DA7} 
  143.             Caption         =   "
  144.             Key             =   "Group2"
  145.             Object.Tag             =   ""
  146.             Object.ToolTipText     =   "
  147.             ImageVarType    =   2
  148.          EndProperty
  149.          BeginProperty Tab3 {0713F341-850A-101B-AFC0-4210102A8DA7} 
  150.             Caption         =   "
  151.             Key             =   "Group3"
  152.             Object.Tag             =   ""
  153.             Object.ToolTipText     =   "
  154.             ImageVarType    =   2
  155.          EndProperty
  156.          BeginProperty Tab4 {0713F341-850A-101B-AFC0-4210102A8DA7} 
  157.             Caption         =   "
  158.             Key             =   "Group4"
  159.             Object.Tag             =   ""
  160.             Object.ToolTipText     =   "
  161.             ImageVarType    =   2
  162.          EndProperty
  163.       EndProperty
  164.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  165.          Name            =   "
  166.          Size            =   9
  167.          Charset         =   0
  168.          Weight          =   400
  169.          Underline       =   0   'False
  170.          Italic          =   0   'False
  171.          Strikethrough   =   0   'False
  172.       EndProperty
  173.    End
  174. Attribute VB_Name = "frmOptions"
  175. Attribute VB_GlobalNameSpace = False
  176. Attribute VB_Creatable = False
  177. Attribute VB_PredeclaredId = True
  178. Attribute VB_Exposed = False
  179. Option Explicit
  180. Private Sub cmdApply_Click()
  181.     MsgBox "
  182. End Sub
  183. Private Sub cmdCancel_Click()
  184.     Unload Me
  185. End Sub
  186. Private Sub cmdOK_Click()
  187.     MsgBox "
  188.     Unload Me
  189. End Sub
  190. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
  191.     Dim i As Integer
  192.     '
  193.  ctrl+tab 
  194.     If Shift = vbCtrlMask And KeyCode = vbKeyTab Then
  195.         i = tbsOptions.SelectedItem.Index
  196.         If i = tbsOptions.Tabs.Count Then
  197.             '
  198.             Set tbsOptions.SelectedItem = tbsOptions.Tabs(1)
  199.         Else
  200.             ' 
  201.             Set tbsOptions.SelectedItem = tbsOptions.Tabs(i + 1)
  202.         End If
  203.     End If
  204. End Sub
  205. Private Sub Form_Load()
  206.     '
  207.     Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2
  208. End Sub
  209. Private Sub fraSample1_DragDrop(Source As Control, X As Single, Y As Single)
  210. End Sub
  211. Private Sub fraSample2_DragDrop(Source As Control, X As Single, Y As Single)
  212. End Sub
  213. Private Sub fraSample3_DragDrop(Source As Control, X As Single, Y As Single)
  214. End Sub
  215. Private Sub fraSample4_DragDrop(Source As Control, X As Single, Y As Single)
  216. End Sub
  217. Private Sub picOptions_Click(Index As Integer)
  218. End Sub
  219. Private Sub tbsOptions_Click()
  220.     Dim i As Integer
  221.     '
  222.     '
  223.     For i = 0 To tbsOptions.Tabs.Count - 1
  224.         If i = tbsOptions.SelectedItem.Index - 1 Then
  225.             picOptions(i).Left = 210
  226.             picOptions(i).Enabled = True
  227.         Else
  228.             picOptions(i).Left = -20000
  229.             picOptions(i).Enabled = False
  230.         End If
  231.     Next
  232. End Sub
  233.