home *** CD-ROM | disk | FTP | other *** search
- '****************************************************************************
- 'Total Control Systems QuickBasic 4.5
- '****************************************************************************
- '
- ' Program : STDLIB.BAS
- ' Written by : Tim Beck
- ' Written On : 10-01-90
- ' Function : STANDARD LIBRARY
- '
- '****************************************************************************
- ' This program and those associated with it were written for use with Quick-
- ' Windows Advanced (Version 1.5+). Possesion of this program entitles you
- ' to certain priviliges. They are:
- '
- ' 1. You may compile, use, or modify this program in any way you choose
- ' provided you do not sell or give away the source code to this prog-
- ' ram or any of it's companions to anyone for any reason. You may,
- ' however, sell the resulting executable program as you see fit.
- '
- ' 2. You may modify, enhance or change these programs as you see fit. I
- ' as that you keep a copy of the original code and that you notify
- ' me of any improvements you make. I like to think that the code is
- ' bug free and cannot be improved upon, but I'm sure someone will
- ' find a way to make it better. If it's you, I'm looking forward to
- ' seeing your changes. I can be reached at:
- '
- ' Tim Beck Tim Beck (C/O Debbie Beck)
- ' 19419 Franz Road 8030 Fairchild Avenue
- ' Houston, Texas 77084 Canoga Park, California 91306
- ' (713) 639-3079 (818) 998-0588
- '
- ' 3. This code has been tested and re-tested in a variety of applications
- ' and although I have not found any bugs, doesn't mean none exist. So,
- ' this program along with it's companions comes with NO WARRANTY,
- ' either expressed or implied. I'm sorry if there are problems, but
- ' I can't be responsible for your work. I've tried to provide a safe
- ' and efficient programming enviroment and I hope you find it helpful
- ' for you. I do, however, need to cover my butt!
- '
- ' I have enjoyed creating this library of programs and have found them to be
- ' a great time saver. I hope you agree.
- '
- ' Tim Beck //
- '
- '****************************************************************************
-
- REM $INCLUDE: 'STDCOM.INC'
- REM $ INCLUDE : 'STDLIB.INC' 'Include is disabled
-
- 'Initialization Items
-
- 'KeyStrokes
- Escape% = 27
- Enter% = 13
-
- Left.Arrow% = 19200
- Right.Arrow% = 19712
- Up.Arrow% = 18432
- Down.Arrow% = 20480
- Page.Up% = 18688
- Page.Down% = 20736
-
- Insert% = 20992
- Delete% = 21248
- Home% = 18176
- End.Key% = 20224
-
- Back.Space% = 8
- Horiz.Tab% = 9
- Back.Tab% = 3840
-
- F.1% = 15104
- F.2% = 15360
- F.3% = 15616
- F.4% = 15872
- F.5% = 16128
- F.6% = 16384
- F.7% = 16640
- F.8% = 16896
- F.9% = 17152
- F.10% = 17408
-
- Ctrl.Home% = 30464
- Ctrl.End% = 29952
- Ctrl.Pgup% = -31744
- Ctrl.PgDn% = 30208
- Ctrl.Right% = 29696
- Ctrl.Left% = 29440
-
- Ctrl.A% = 1
- Ctrl.B% = 2
- Ctrl.C% = 3
- Ctrl.D% = 4
- Ctrl.E% = 5
- Ctrl.F% = 6
- Ctrl.G% = 7
- Ctrl.H% = 8
- Ctrl.I% = 9
- Ctrl.J% = 10
- Ctrl.K% = 11
- Ctrl.L% = 12
- Ctrl.M% = 13
- Ctrl.N% = 14
- Ctrl.O% = 15
- Ctrl.P% = 16
- Ctrl.Q% = 17
- Ctrl.R% = 18
- Ctrl.S% = 19
- Ctrl.T% = 20
- Ctrl.U% = 21
- Ctrl.V% = 22
- Ctrl.W% = 23
- Ctrl.X% = 24
- Ctrl.Y% = 25
- Ctrl.Z% = 26
-
- Ctrl.F.1% = 24064
- Ctrl.F.2% = 24320
- Ctrl.F.3% = 24576
- Ctrl.F.4% = 24832
- Ctrl.F.5% = 25088
- Ctrl.F.6% = 25344
- Ctrl.F.7% = 25600
- Ctrl.F.8% = 25856
- Ctrl.F.9% = 26112
- Ctrl.F.10% = 26368
-
- Alt.A% = 7680
- Alt.B% = 12288
- Alt.C% = 11776
- Alt.D% = 8192
- Alt.E% = 4608
- Alt.F% = 8448
- Alt.G% = 8704
- Alt.H% = 8960
- Alt.I% = 5888
- Alt.J% = 9216
- Alt.K% = 9472
- Alt.L% = 9728
- Alt.M% = 12800
- Alt.N% = 12544
- Alt.O% = 6144
- Alt.P% = 6400
- Alt.Q% = 4096
- Alt.R% = 4864
- Alt.S% = 7936
- Alt.T% = 5120
- Alt.U% = 5632
- Alt.V% = 12032
- Alt.W% = 4352
- Alt.X% = 11520
- Alt.Y% = 5376
- Alt.Z% = 11264
-
- Alt.F.1% = 26624
- Alt.F.2% = 26880
- Alt.F.3% = 27136
- Alt.F.4% = 27392
- Alt.F.5% = 27648
- Alt.F.6% = 27904
- Alt.F.7% = 28160
- Alt.F.8% = 28416
- Alt.F.9% = 28672
- Alt.F.10% = 28928
-
- Shift.Tab% = 3840
-
- Shift.F.1% = 21504
- Shift.F.2% = 21760
- Shift.F.3% = 22016
- Shift.F.4% = 22272
- Shift.F.5% = 22528
- Shift.F.6% = 22784
- Shift.F.7% = 23040
- Shift.F.8% = 23296
- Shift.F.9% = 23552
- Shift.F.10% = 23808
-
- Key.Flag% = -1 'Returns Unused key values (F1, F2, etc)
-
- 'Status Line Information
- Display.Cap.Lock% = -1 'Cap.Lock Display is on
- Display.Num.Lock% = -1 'Num.Lock Display is on
- Display.Insert.Key% = -1 'Insert Key Display is on
- Status.Line.Row% = 24 'Status Line Row = 24
- Status.Line.Col% = 60 'Status Line Col = 60
-
- IF mono% THEN
- 'Colors - 15 is Brightwhite, 7 is White, 0 is black, 1 is blue
- S.Fore% = 15 'Screen Foreground
- S.Back% = 0 'Screen Background
- M.Fore% = 7 'Menu Foreground
- M.Back% = 0 'Menu Background
- H.Fore% = 0 'Help Foreground
- H.Back% = 7 'Help Background
- DE.Fore% = 0 'Data Entry Foreground
- DE.Back% = 7 'Data Entry Background
- HB.Fore% = 0 'Highlight Bar Foreground
- HB.Back% = 7 'Highlight Bar Background
- MB.Fore% = 0 'Menu Bar Foreground
- MB.Back% = 7 'Menu Bar Background
-
- 'Attributes are calculated as follows:
- ' Foreground + (Background * 16)
- S.attr% = 15
- M.attr% = 7
- H.attr% = 112
- DE.attr% = 112
- HB.attr% = 112
- MB.attr% = 112
-
- Sh.Flag% = 16 'Transparent Shadow (0=no Shadow, 16=Solid Shadow)
- EX.Flag% = 0 'Exploding Windows off (128=On)
-
- mode% = 1 'MonoChrome
- ELSE
- 'Colors - 15 is Brightwhite, 7 is White, 0 is black, 1 is blue, 4 is Red
- S.Fore% = 15 'Screen Foreground
- S.Back% = 1 'Screen Background
- M.Fore% = 1 'Menu Foreground
- M.Back% = 7 'Menu Background
- H.Fore% = 1 'Help Foreground
- H.Back% = 7 'Help Background
- DE.Fore% = 1 'Data Entry Foreground
- DE.Back% = 7 'Data Entry Background
- HB.Fore% = 1 'Highlight Bar Foreground
- HB.Back% = 7 'Highlight Bar Background
- MB.Fore% = 1 'Menu Bar Foreground
- MB.Back% = 7 'Menu Bar Background
-
- 'Attributes are calculated as follows:
- ' Foreground + (Background * 16)
- S.attr% = 31
- M.attr% = 23
- H.attr% = 113
- DE.attr% = 113
- HB.attr% = 113
- MB.attr% = 113
-
- Sh.Flag% = 48 'Transparent Shadow (0=no Shadow, 16=Solid Shadow)
- EX.Flag% = 0 'Exploding Windows off (128=On)
-
- mode% = 0 'Color
- END IF
-
- TIMER OFF 'Enables event trapping
-
-
-