home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
kdraw.zip
/
kDraw.Doc
< prev
next >
Wrap
Text File
|
1998-09-12
|
7KB
|
133 lines
******************************************************************************
* (c) Copyright International Business Machines Corporation 1994, 1998. *
* All rights Reserved. *
* *
* User's Guide of DRAW and DRAWJ macros (Ver 1.23) *
* *
* *
* Author: Shintaroh Hori (Yamato Lab, IBM Japan) *
******************************************************************************
List of files extracted from KDRAW.ZIP
--------------------------------------
LICENSE.TXT IBM License Agreement
KDRAW.ABS Abstract of this program
KDRAW.DOC User's Guide (this file)
DRAW.KEX Draw macro. Customized for codepage 437 and 850
DRAWJ.KEX Draw macro. Customized for DBCS codepages 932 and 942.
Draw.the THE version.
DrawJ.the THE version.
Introduction
------------
Draw.kex and DrawJ.kex are macros of KEDIT which is a PC based XEDIT look-alike
offered by Mansfield Software Group. You can use the macros to draw box
characters by cursor movement keys just like DRAW.E macro of E-family editor.
Draw.kex/DrawJ.kex macros are better than DRAW.E macro in following points:
o Any characters can be entered in a file area while in drawing mode.
o Up and down of a drawing pen is controlled by Ctrl-F1 key which would make
it easier to enter characters while you are drawing boxes.
(In DRAW.E macro, it is done by INSERT key.)
o You can change box line type between single-line and double-line by Ctrl-F2
key while in drawing mode. (In case of DrawJ macro, box line types are
single-line and bold-line.)
o Joint or cross of two lines with different types is supported.
o You can also draw arrow characters of two types.
Function of DRAW.KEX:
---------------------
When it is invoked, it enters a drawing mode where you can use Cursor move
keys(Up/Down/Right/Left) to draw box characters like a pen.
You can raise the pen by pressing Ctrl-F1 key to move the pen anywhere you
like by Cursor move keys, TAB keys, and any other keys that move the cursor,
and then put down the pen by pressing again the Ctrl-F1 key.
The drawing mode is exited by pressing ESC key.
In addition to this basic operation, the macro has following functions:
1) You can select either primary code page or secondary code page for the
box characters when you invoke the macro.
The macro is customized for the primary to be for US and the secondary to
be for Japan.
(You can easily change them by modifying the macro.)
2) US code page users can switch between box characters of single-line and
ones of double-line while in the drawing mode.
Ctrl-F2 key is assigned to alter the type.
Join or cross of two lines of different types is supported so that one
type recognizes the other while in drawing whenever a character for the
join or cross is defined in the primary code page.
For example, when a double-line crosses a single-line, then a cross
character of both double-line and single-line is drawn rather than the
single double-line that overlays the single-line. See example below:
┌─────────────────────────────────────────────────┐
│ ┌──╥─┐ ╔═════╗ │
│ ╔══╤══╗ │ ║ │ ║ ┌──╫──┐ │ ── Looks good in
│ ║ │ ║ │ ║ │ ║ │ ║ │ │ code page 437.
│ ╟──┼──╢ ╞══╬═╡ ║ │ ║ │ │
│ ║ │ ║ │ ║ │ ╚══╪══╝ │ │
│ ╚══╧══╝ └──╨─┘ └─────┘ │
└─────────────────────────────────────────────────┘
3) Arrow characters(Up/Down/Right/Left) can be entered by Cursor move keys
with Alt key pressed. ( )
4) While in the drawing mode, you can use any editing keys except the ones
that are assigned to control drawing as mentioned above.
(Mouse is disabled.)
5) Two types of the arrow characters can be switched by C-F3 key for the
primary code page.
Function of DRAWJ.KEX:
---------------------
This macro draws box characters of DBCS, and therefore only for DBCS users.
The box characters to be used are customized for Japanese code page.
You can easily modify the macro to support other code page for your own.
Functions of this macro is the same as DRAW.KEX except the function #1
described above;
1) You can switch between box characters of single-line and ones of bold-line
while in the drawing mode by Ctrl-F2 key.
Join or cross of two lines of different types is supported so that one
type recognizes the other while in drawing whenever a character for the
join or cross is defined in the code page. (The same function as 2) of
Draw.kex macro.)
Japanese code pages 932 and 942, however, do not have corner characters
that consist of both single-line and bold-line, they are treated as the
ones of only single-line.
2) Arrow characters(Up/Down/Right/Left) can be entered by Cursor move keys
with Alt key pressed.
3) While in the drawing mode, you can use any editing keys except the ones
that are assigned to control drawing as mentioned above.
(Mouse is disabled.)
Syntax of DRAW and DRAWJ macros:
--------------------------------
┌─────────────────────────────────────────────────────────────────────┐
│ │
│ ─────DRAW──────┬─────────┬──────────────────────────────── │
│ └───ALT───┘ │
│ │
│ Where ALT option enables the secondary code page to be used. │
│ │
│ │
│ ─────DRAWJ──────────────────────────────────────────────── │
│ │
└─────────────────────────────────────────────────────────────────────┘