home *** CD-ROM | disk | FTP | other *** search
- 'VB-TIPS.TXT File Viewer
- 'Copyright 1991 Nelson Ford
- 'Public (software) Library
- '713-524-6394, CIS: 71355,470
-
- 'For distribution only on the MSBASIC forum on CompuServe.
- 'Requires VB-TIPS.TXT file on the MSBASIC DL's as VBTIPS.EXE.
- 'Users are encouraged to make enhancements to this program.
-
- 'To avoid confusion resulting from multiple copies being
- ' uploaded, do not upload your "enhanced" version.
- 'Either upload your changes or transmit your changes to
- ' me and I will integrate them into the program.
-
- 'To maximize flexibility and ease of bringing in new data,
- ' the VB-TIPS.TXT file that is read by this program was
- ' left in its original file. That way, people without this
- ' program can easily read it. The only drawback is that
- ' it takes a while to read in the data when the program
- ' starts.
-
- 'Because List Boxes are limited to 64k, the program uses
- ' a List Box control array to hold the tips, making the
- ' the selected one visible as needed. I could have used
- ' a third party add-on, but wanted to keep this useable
- ' by everyone. I could have used a Huge Array, but they
- ' are slow and a pain to access.
-
- 'NOTE: The 6 forms are limited to 900-1000 lines, for a
- ' total of 5400-6000 lines. If the VB-TIPS.TXT files gets
- ' larger than that, this program will have to be modified
- ' to add more TIPS boxes to the control array in Form3.
-
- 'Clicking "Clipboard" on the VB-TIPS form copies the
- ' current Tip to the Windows Clipboard for importing to
- ' your VB apps.
-
- DefInt A-Z
-
- Global DataPath As String
- Global CR As String
-
- Global Cat(1 To 35) As String
- Global TopicNum(1 To 30)
- Global Topic(1 To 500) As String
- Global TipNum(0 To 1, 1 To 500)
-
- Global CurTopic
- Global LastCat
- Global LastTopic
- Global Srch As String
-
- Global CurrentForm, LastForm
-
- 'for forcing forms to top (see "Float" in VB-TIPS.TXT):
- Declare Sub SetWindowPos Lib "user" (ByVal hWnd, ByVal hWndInsertAfter, ByVal X, ByVal Y, ByVal cx, ByVal cy, ByVal wFlags)
- Declare Function GetWindow Lib "User" (ByVal hWnd, ByVal wCmd)
-
- Global Const SWP_Nosize = &H1
- Global Const SWP_NoMove = &H2
- Global Const SWP_NoActivate = &H10
- Global Const SWP_ShowWindow = &H40
-
- Declare Function GetActiveWindow Lib "user" ()
- Declare Function IsWindow Lib "user" (ByVal hWnd)
- Declare Function SetFocusAPI Lib "user" Alias "SetFocus" (ByVal hWnd As Integer) As Integer
- Declare Function ShowWindow Lib "user" (ByVal hWnd As Integer, ByVal nCmdShow As Integer) As Integer
- Declare Function FindWindow Lib "user" (ByVal Cname As Any, ByVal Caption As Any)
-
-