Graphic LineDraw

From BR Wiki
Revision as of 21:58, 29 July 2014 by Laura (talk | contribs)
Jump to navigation Jump to search
 CONFIG GRAPHIC_LINEDRAW {ON | RAISED | SUNKEN | OFF}

The Graphic_LineDraw BRConfig.sys specification controls the appearance ofborders around windows. The following linedraw modes are supported:

CONFIG GRAPHIC_LINEDRAW THINRAISED  (Thin line Windows mode)
CONFIG GRAPHIC_LINEDRAW THIN        (Default BR thin line sunken)

The above do not require any bitmap files to be present.

CONFIG GRAPHIC_LINEDRAW RAISED   (BR linedraw as before)
CONFIG GRAPHIC_LINEDRAW SUNKEN

These require DRAWLINE.BMP and/or DRAWSUNK.BMP to be present.

RAISED is the default and is synonymous with ON.

SUNKEN indents line draw characters giving a bit more conservative appearance.

Lines are drawn on a window by using PRINT FIELDS and linedraw characters. Linedraw characters are generated via the numeric keypad using the numbers 0-9 and . when you are in linedraw mode. To toggle linedraw mode on and off, press Ctrl backslash (CTRL \). See diagram for clarification:

Custom linedraw sets may be used by modifying the bitmaps DRAWLINE.BMP and DRAWSUNK.BMP.

This feature is supported by the CONFIG command and becomes effective upon the next OPEN of window #0. Using EXECUTE allows you to set it from within the program.

Example

Below is a sample program for printing these borders:

Remember to press CTRL\ to type in the linedraw images.