home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / Simple_Hel2076717222007.psc / SimpleHelp.frm < prev   
Text File  |  2007-07-21  |  7KB  |  182 lines

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  3. Begin VB.Form SHelp 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Simple Help"
  6.    ClientHeight    =   3645
  7.    ClientLeft      =   45
  8.    ClientTop       =   435
  9.    ClientWidth     =   7740
  10.    Icon            =   "SimpleHelp.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   3645
  15.    ScaleWidth      =   7740
  16.    ShowInTaskbar   =   0   'False
  17.    StartUpPosition =   3  'Windows Default
  18.    Begin VB.CommandButton OKbut 
  19.       Caption         =   "OK"
  20.       Height          =   435
  21.       Left            =   105
  22.       TabIndex        =   4
  23.       Top             =   3150
  24.       Width           =   960
  25.    End
  26.    Begin MSComctlLib.ImageList ImageList1 
  27.       Left            =   1470
  28.       Top             =   3150
  29.       _ExtentX        =   1005
  30.       _ExtentY        =   1005
  31.       BackColor       =   -2147483643
  32.       ImageWidth      =   24
  33.       ImageHeight     =   24
  34.       MaskColor       =   12632256
  35.       _Version        =   393216
  36.       BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  37.          NumListImages   =   2
  38.          BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  39.             Picture         =   "SimpleHelp.frx":076A
  40.             Key             =   ""
  41.          EndProperty
  42.          BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  43.             Picture         =   "SimpleHelp.frx":0EE4
  44.             Key             =   ""
  45.          EndProperty
  46.       EndProperty
  47.    End
  48.    Begin VB.Frame Frame2 
  49.       Caption         =   "Description"
  50.       Height          =   2955
  51.       Left            =   3465
  52.       TabIndex        =   1
  53.       Top             =   105
  54.       Width           =   4215
  55.       Begin VB.TextBox Text1 
  56.          BeginProperty Font 
  57.             Name            =   "Courier New"
  58.             Size            =   8.25
  59.             Charset         =   0
  60.             Weight          =   400
  61.             Underline       =   0   'False
  62.             Italic          =   0   'False
  63.             Strikethrough   =   0   'False
  64.          EndProperty
  65.          Height          =   2640
  66.          Left            =   105
  67.          Locked          =   -1  'True
  68.          MultiLine       =   -1  'True
  69.          ScrollBars      =   2  'Vertical
  70.          TabIndex        =   2
  71.          TabStop         =   0   'False
  72.          Top             =   210
  73.          Width           =   4005
  74.       End
  75.    End
  76.    Begin VB.Frame Frame1 
  77.       Caption         =   "Contents"
  78.       Height          =   2955
  79.       Left            =   105
  80.       TabIndex        =   0
  81.       Top             =   105
  82.       Width           =   3270
  83.       Begin MSComctlLib.TreeView TreeView1 
  84.          Height          =   2640
  85.          Left            =   105
  86.          TabIndex        =   3
  87.          Top             =   210
  88.          Width           =   3060
  89.          _ExtentX        =   5398
  90.          _ExtentY        =   4657
  91.          _Version        =   393217
  92.          Indentation     =   706
  93.          LabelEdit       =   1
  94.          Style           =   5
  95.          HotTracking     =   -1  'True
  96.          ImageList       =   "ImageList1"
  97.          Appearance      =   1
  98.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  99.             Name            =   "Arial"
  100.             Size            =   8.25
  101.             Charset         =   0
  102.             Weight          =   400
  103.             Underline       =   0   'False
  104.             Italic          =   0   'False
  105.             Strikethrough   =   0   'False
  106.          EndProperty
  107.       End
  108.    End
  109. End
  110. Attribute VB_Name = "SHelp"
  111. Attribute VB_GlobalNameSpace = False
  112. Attribute VB_Creatable = False
  113. Attribute VB_PredeclaredId = True
  114. Attribute VB_Exposed = False
  115. Option Explicit
  116. '----------------------------------------------------------\
  117. 'Author: Richard E. Gagnon.                                |
  118. 'URL:    http://members.cox.net/reg501/                    |
  119. 'Email:  reg501@cox.net                                    |
  120. 'Copyright ⌐ 2007 Richard E. Gagnon. All Rights Reserved.  |
  121. '----------------------------------------------------------/
  122. Private Const SC = 234      'Content Node Start
  123. Private Const FC = 235      'Content Node End
  124. Private Const SS1 = 224     'Subject1 Title Start
  125. Private Const FS1 = 229     'Subject1 Title End
  126. Private Const ST1 = 244     'Subject1 Text Start
  127. Private Const FT1 = 246     'Subject1 Text End
  128. Private Const SS2 = 251     'Subject2 Title Start
  129. Private Const FS2 = 252     'Subject2 Title End
  130. Private Const ST2 = 236     'Subject2 Text Start
  131. Private Const FT2 = 237     'Subject2 Text End
  132. Private HelpSpace() As Byte 'Open File Array
  133. Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
  134.  
  135. Private Sub Form_Load()
  136. Dim FEH As Long
  137. Dim Node1 As Node, Node2 As Node, Node3 As Node
  138. Dim Fnum As Integer
  139. Dim HelpFileName As String
  140. Dim sText As String
  141. Dim S1 As Long, FL As Long
  142. Dim I As Long, J As Long
  143. Fnum = FreeFile
  144. HelpFileName = App.Path & "\SimpleHelp.shf"
  145. Open HelpFileName For Binary Access Read As Fnum
  146. FL = FileLen(HelpFileName)
  147. ReDim HelpSpace(1 To FL)
  148. Get Fnum, , HelpSpace
  149. Close Fnum
  150. TreeView1.Nodes.Clear
  151. For I = 1 To FL
  152.     Select Case HelpSpace(I)
  153.         Case SC: S1 = I + 1
  154.         Case FC
  155.             sText = ""
  156.             For J = S1 To I - 1: sText = sText & Chr(HelpSpace(J)): Next J
  157.             Set Node1 = TreeView1.Nodes.Add(, , , sText, 1, 1)
  158.         Case SS1: S1 = I + 1
  159.         Case FS1
  160.             sText = ""
  161.             For J = S1 To I - 1: sText = sText & Chr(HelpSpace(J)): Next J
  162.             Set Node2 = TreeView1.Nodes.Add(Node1.Index, tvwCIons"rS 1
  163.       o I + 1
  164.  
  165.  0h,Os.Add)CktEetpFileNa0CHelpSpace(J)): Next J
  166.  i1
  167.  
  168. FhpSpad(,ha2Aser
  169. FtcCHel
  170. aFhpSh3
  171.  i1
  172. )ct1 Title
  173. Ft_.CB_Apace(cad(,ha2AssssssdBtr_e(cad(,ha2AssssssdSx17 Chr(3ha22Asssu2iCfc Function As + 1
  174.  
  175. d(,ha2AssssssdSx17 Chr(3ha22Aubjectes.Adv       =   960nt,ha2Asssss3,"p0ssssdSx17 Chr(3eeee(eEnt,eeee(eE"1r0  =   960ntr7nyauser32
  176. FhreeView1.Nodes.Add(Node1.Index, tit gh  DtxB_lsss3,"p0ssssdSx17 Chnt,hp0ssssdSx17 leAubjectu,ox17 Chnt,hp0ssssdSxhp0{dSxhp0{dSxhp1edtxApacemw1rdSxhp0{dSxhp0{dS.1eeee(eE"1r0  =   960rt,hp0stEnd
  177. Prie.shI2S
  178. Prie.shI2S
  179. Prie.s
  180. Prie.shI2S
  181. PrieaO.h.RxxrAddeR2S
  182. PrieaO.h.RN.waFm)WatEeC-L.RN.waFm)WatEeC-LeSrAdE3EreeFi   Set Node2 = TieBie.hp0{dxls+lpSpadlIndex, tit gh  Dtls+lpSpadlIndex, .h.RN.Ctls+lpSpadlIndex, .h.RN.Ctl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl 7tl