home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / mvhelp / vwr_help.frm < prev    next >
Text File  |  1994-01-10  |  7KB  |  237 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Context Sensitive Help With Viewer"
  6.    ClientHeight    =   2955
  7.    ClientLeft      =   1605
  8.    ClientTop       =   1575
  9.    ClientWidth     =   5655
  10.    ForeColor       =   &H00C0C0C0&
  11.    Height          =   3420
  12.    Icon            =   VWR_HELP.FRX:0000
  13.    KeyPreview      =   -1  'True
  14.    Left            =   1515
  15.    LinkTopic       =   "Form1"
  16.    MaxButton       =   0   'False
  17.    ScaleHeight     =   2955
  18.    ScaleWidth      =   5655
  19.    Tag             =   "Form"
  20.    Top             =   1200
  21.    Width           =   5835
  22.    Begin SSPanel Panel3D5 
  23.       AutoSize        =   3  'AutoSize Child To Panel
  24.       BackColor       =   &H00C0C0C0&
  25.       BevelOuter      =   1  'Inset
  26.       BevelWidth      =   2
  27.       Caption         =   "Panel3D5"
  28.       Font3D          =   0  'None
  29.       Height          =   375
  30.       Left            =   4320
  31.       TabIndex        =   14
  32.       Top             =   720
  33.       Width           =   1095
  34.       Begin CommandButton cmdHelp 
  35.          Caption         =   "&Help"
  36.          Height          =   315
  37.          Left            =   30
  38.          TabIndex        =   15
  39.          Top             =   30
  40.          Width           =   1035
  41.       End
  42.    End
  43.    Begin SSPanel Panel3D4 
  44.       AutoSize        =   3  'AutoSize Child To Panel
  45.       BackColor       =   &H00C0C0C0&
  46.       BevelOuter      =   1  'Inset
  47.       BevelWidth      =   2
  48.       Caption         =   "Panel3D4"
  49.       Font3D          =   0  'None
  50.       Height          =   375
  51.       Left            =   4320
  52.       TabIndex        =   12
  53.       Top             =   1200
  54.       Width           =   1095
  55.       Begin CommandButton Command1 
  56.          Caption         =   "&About"
  57.          Height          =   315
  58.          Index           =   1
  59.          Left            =   30
  60.          TabIndex        =   6
  61.          Tag             =   "AboutButton"
  62.          Top             =   30
  63.          Width           =   1035
  64.       End
  65.    End
  66.    Begin SSPanel Panel3D3 
  67.       AutoSize        =   3  'AutoSize Child To Panel
  68.       BackColor       =   &H00C0C0C0&
  69.       BevelOuter      =   1  'Inset
  70.       BevelWidth      =   2
  71.       Caption         =   "Panel3D3"
  72.       Font3D          =   0  'None
  73.       Height          =   375
  74.       Left            =   4320
  75.       TabIndex        =   11
  76.       Top             =   240
  77.       Width           =   1095
  78.       Begin CommandButton Command1 
  79.          Cancel          =   -1  'True
  80.          Caption         =   "Close"
  81.          Height          =   315
  82.          Index           =   0
  83.          Left            =   30
  84.          TabIndex        =   5
  85.          Tag             =   "CloseButton"
  86.          Top             =   30
  87.          Width           =   1035
  88.       End
  89.    End
  90.    Begin SSPanel Panel3D2 
  91.       AutoSize        =   3  'AutoSize Child To Panel
  92.       BackColor       =   &H00C0C0C0&
  93.       BevelOuter      =   1  'Inset
  94.       BevelWidth      =   2
  95.       Caption         =   "Panel3D2"
  96.       Font3D          =   0  'None
  97.       Height          =   1215
  98.       Left            =   240
  99.       TabIndex        =   10
  100.       Top             =   600
  101.       Width           =   2535
  102.       Begin DirListBox Dir1 
  103.          BackColor       =   &H00FFFFFF&
  104.          Height          =   1155
  105.          Left            =   30
  106.          TabIndex        =   0
  107.          Tag             =   "FileListBox"
  108.          Top             =   30
  109.          Width           =   2475
  110.       End
  111.    End
  112.    Begin SSPanel Panel3D1 
  113.       AutoSize        =   3  'AutoSize Child To Panel
  114.       BackColor       =   &H00C0C0C0&
  115.       BevelOuter      =   1  'Inset
  116.       BevelWidth      =   2
  117.       Caption         =   "Panel3D1"
  118.       Font3D          =   0  'None
  119.       Height          =   375
  120.       Left            =   240
  121.       TabIndex        =   9
  122.       Top             =   2400
  123.       Width           =   2535
  124.       Begin TextBox Text1 
  125.          BackColor       =   &H00FFFFFF&
  126.          Height          =   315
  127.          Left            =   30
  128.          TabIndex        =   1
  129.          Tag             =   "TextBox"
  130.          Text            =   "Topic 2"
  131.          Top             =   30
  132.          Width           =   2475
  133.       End
  134.    End
  135.    Begin SSFrame Frame3D1 
  136.       Caption         =   "Options:"
  137.       Font3D          =   0  'None
  138.       Height          =   1095
  139.       Left            =   3720
  140.       TabIndex        =   8
  141.       Top             =   1680
  142.       Width           =   1695
  143.       Begin SSOption Option3D2 
  144.          Caption         =   "Topic 5"
  145.          Font3D          =   0  'None
  146.          Height          =   255
  147.          Left            =   360
  148.          TabIndex        =   4
  149.          Tag             =   "OptionButton2"
  150.          Top             =   720
  151.          Width           =   1095
  152.       End
  153.       Begin SSOption Option3D1 
  154.          Caption         =   "Topic 4"
  155.          Font3D          =   0  'None
  156.          Height          =   255
  157.          Left            =   360
  158.          TabIndex        =   3
  159.          Tag             =   "OptionButton1"
  160.          Top             =   360
  161.          Width           =   1095
  162.       End
  163.    End
  164.    Begin PictureBox Picture1 
  165.       AutoSize        =   -1  'True
  166.       Height          =   510
  167.       Left            =   3000
  168.       Picture         =   VWR_HELP.FRX:0302
  169.       ScaleHeight     =   480
  170.       ScaleWidth      =   480
  171.       TabIndex        =   2
  172.       Tag             =   "PictureBox"
  173.       Top             =   600
  174.       Width           =   510
  175.    End
  176.    Begin Label Label2 
  177.       AutoSize        =   -1  'True
  178.       BackStyle       =   0  'Transparent
  179.       Caption         =   "Give any of these guys the focus, then hit F1:"
  180.       Height          =   195
  181.       Left            =   240
  182.       TabIndex        =   13
  183.       Top             =   240
  184.       Width           =   3915
  185.    End
  186.    Begin Label Label1 
  187.       BackStyle       =   0  'Transparent
  188.       Caption         =   "Text Box:"
  189.       Height          =   255
  190.       Left            =   240
  191.       TabIndex        =   7
  192.       Top             =   2160
  193.       Width           =   2415
  194.    End
  195. End
  196. Option Explicit
  197.  
  198. Sub cmdHelp_Click ()
  199.   Dim temp$
  200.   temp$ = Me.Tag
  201.   StartViewer
  202.   JumpTopic temp$
  203. End Sub
  204.  
  205. Sub Command1_Click (index As Integer)
  206.   If index = 0 Then  'close app
  207.     Unload Me
  208.   Else               'about box
  209.     frmAbout.Show 1
  210.   End If
  211. End Sub
  212.  
  213. ' Now we're set to trap the F1 keypress (make sure the form's KeyPreview
  214. ' property is set to true):
  215. Sub Form_KeyDown (KeyCode As Integer, Shift As Integer)
  216.   Dim temp$
  217.   If KeyCode = VK_F1 Then
  218.     temp$ = screen.ActiveControl.Tag
  219.     StartViewer
  220.     JumpTopic temp$
  221.   End If
  222. End Sub
  223.  
  224. Sub Form_Load ()
  225.   Move screen.Height \ 2 - Height \ 2, screen.Width \ 2 - Width \ 2
  226. End Sub
  227.  
  228. ' When your app ends make sure you close Viewer, just as you
  229. ' would with a Help file:
  230. Sub Form_Unload (Cancel As Integer)
  231.   Dim temp
  232. ' close Viewer
  233.   temp = VwrQuit(vwr)
  234.   End
  235. End Sub
  236.  
  237.