home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-386-Vol-2of3.iso
/
c
/
ccua_dbc.zip
/
CCUA.DOC
< prev
next >
Wrap
Text File
|
1992-09-11
|
9KB
|
234 lines
Common User Access edit modifications [ 09/11/1992 ]
-------------------------------------
What's New:
-----------
The front-end menu system has been completely re-worked:
1) "+ File " and "- File" are now <PgDn> and <PgUp>.
2) Next Record is hot-keyed to <Ctrl-RightArrow>.
3) Previous Record is hot-keyed to <Ctrl-LeftArrow>.
4) Top Record is now called "First", and is hot-keyed to <Home>.
5) Last Record is hot-keyed to <End>.
6) Find is now called "Search", and hot-keyed to <Alt-S>.
7) Add is now hot-keyed to <Insert>.
8) Delete is now hot-keyed to <Delete>.
9) Copy is now hot-keyed to <Ctrl-C>.
10) Edit is now hot-Keyed to <Ctrl-Enter>.
11) The <F10> (accept record) is also mapped to <Ctrl-Enter>.
(It makes sense in practice). <F10> still works, too.
12) The previously undocumented <Alt-V> is now on the menu, and
allows the end-user to change the delay time before the screen-saver
activates.
13) "Swap" is gone, and the code for it has been removed.
(Ever use it? I didn't think so.)
14) The do_proc function of the skeleton file has been restructured
to handle the new hot-keys. In addition, case 13 is gone from
do_proc, and the previously empty case 12 now handles the screen
saver.
!!! ********************************************************* !!!
*** LAST-MINUTE ADDITION ***** READ THIS ****
*********************************************************
The do_proc function in CCUA.SKL now contains cases 101-116.
These cases switch instantly to files 1 through 16 (case
number minus 100).
This makes it possible to instantly switch between files,
not necessarily in sequence.
For example, say you had a 3-file database where
File #1 = Invoices
File #2 = Customers
File #3 = Products
Now, if you wanted to make a pull-down menu that could access
any of the three files at random, you would add three items to
the CCUA.MEN menu's "File" pull-down:
Item Prompt: "Invoices" Execution Action: "P" Procedure #: 101
Item Prompt: "Customers" Execution Action: "P" Procedure #: 102
Item Prompt: "Products" Execution Action: "P" Procedure #: 103
Try it, it works!
------------------------------------
You should have the following files:
CCUA.DOC -- This documentation file.
CCUA.MEN -- CUA-compliant menu system.
CCUA.DBW -- Background screen template.
CCUA.SKL -- CUA-compliant modified skeleton file.
DB_FUNCS.C -- [ These are modified copies of the original units
DB_KEY.H -- from DataBoss 3.5. Changes are marked with:
DB_UTIL.C --
DB_MEMO.C -- { [DG] 09/10/92 -- <explanation> } ]
--------------------------------------
How to install:
Copy all these files to your main DataBoss C directory. The four .C files will overwrite the existing ones, so you may wish to save a
copy of the originals. Your apps will still compile just fine with the
modified .C files and the original DBP.SKL and DBPMENU.DMU, but the
Ctrl-Enter, Tab, and Shift-Tab keys will retain their special functions.
(More on that in a moment).
After you have copied the new .C and .H files into your DataBoss C
directory, run the "NEWLIB" batch file to reconstruct the DataBoss
library with the changed files.
The syntax for NEWLIB is:
NEWLIB <memory model> <compiler manufacturer> <compiler> <librarian>
Example:
Borland C/C++:
NEWLIB L B C:\BORLANDC\BIN\BCC.EXE C:\BORLANDC\BIN\TLIB.EXE
Turbo C/C++:
NEWLIB L B C:\TC\BIN\TCC.EXE C:\TC\BIN\TLIB.EXE
Microsoft C 7.0:
NEWLIB L M C:\C700\BIN\CL.EXE C:\C700\BIN\LIB.EXE
Quick-C:
NEWLIB L M C:\QC25\BIN\QCL.EXE C:\QC25\BIN\LIB.EXE
---------------------------------------
How to use this package:
Design your apps as you normally would. For the sake of convenience, I
have designed a background template (CCUA.DBW) which works very well
with the redesigned menu system. Copy of CCUA.DBW to a work directory,
and rename it to the name of your application. Design your app normally
from there. If you use blue windows with white double-line borders and
yellow text, the "look + feel" will be very similar to the Borland
programming language editors.
Once you have finished your app, Generate/Compile it. On the Generate
pop-up window, there is a line which reads: "Create <myfile>.C using
skeleton file DBC.SKL". Replace the DBC.SKL with CCUA.SKL. Also, under
the "Command Menu Name" should be CCUA.MEN, instead of DBPMENU.DMU.
Generate the code with these settings, compile, and enjoy!
----------------------------------------
CCUA.DBW explanation:
CCUA.DBW is a simple beginning to a database application. There are no
windows, and no fields defined. This file contains only a background
window, which is a backdrop for the application. It was designed to
look like the Borland editors, and maintains the same structure and
color scheme.
All you need to do is copy CCUA.DBW into a working directory. You will
probably wish to rename it, to something which matches your application.
Then, you define fields and windows normally. I suggest a blue window
white double-borders and yellow text (just like Borland's IDE).
Alternatively, you could use a white window with black text, and use
the DBATTR.EXE program to set the Active Video (highlight bar) to
black text on green, Inactive Video to white text on blue, and Edit
Video to white text on green, mimicking the look of the Turbo IDE's
dialog boxes.
---------------------------------
CCUA.MEN explanation:
This is the replacement for DBPMENU.DMU, which is also modeled after the
look and feel of a Borland menu system. Here's how it works:
The main menu bar looks like this:
______________________
File Record Edit
----------------------
The File menu contains the following options:
Item Hot Key
-----------|----------
Next <PgDn> : This is equivalent to DBPMENU's "+ File" option.
Next will move you to the next accessible file in
the database.
Previous <PgUp> : This is equivalent to DBPMENU's "- File" option.
Previous will move you to the preceding file in the
database.
Screen Save <Alt-V> : This feature was present, but not documented, in
the original skeleton and menu system. This allows
the end-user to change the time before the screen
saver appears.
Exit <Alt-X> : This exits the database, just like the "Quit"
option in DBPMENU. The Alt-X hotkey is retained.
The Record menu contains the following options:
Item Hot Key
-----------|----------
Next <Ctrl-RArr> : This is equivalent to DBPMENU's "Next" option.
It will move you to the next record in the
current data file. (If there is no pull-down
menu active, the up arrow will also do this.)
Previous <Ctrl-LArr> : This is equivalent to DBPMENU's "Prev" option.
It will move you to the preceding record in
the current data file. (If there is no
pull-down menu active, the down arrow will
also do this.)
First <Home> : This is equivalent to DBPMENU's "Top" option.
It will move you to the first available
record in the current data file.
Last <End> : This is equivalent to DBPMENU's "Last" option.
It will move you to the last available
record in the current data file.
Search <Alt-S> : This is equivalent to DBPMENU's "Find" option.
It brings up the "Find Record" query system.
The Edit menu contains the following options:
Item Hot Key
-----------|----------
Add <Ins> : Adds a record to the current data file.
Delete <Del> : Removes the current record from the current
data file.
Edit <Ctrl-Enter> : Allows the current record to be edited.
Copy <Ctrl-C> : Copies the current record, and allows the
copy to be edited.
------------------------------------
CUA.SKL changes:
do_menu has been restructured to handle the new key mappings, and the
Swap function is gone from do_proc. That's about it....
------------------------------------
Enjoy!
Justin Kaufman and David Gonzalez
** "Borland", "Turbo", "Turbo Pascal", and "IDE" are trademarks of
Borland International, Scotts Valley, CA. **