Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QWIKC20 & Multi-Level Virtual Windows - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

                                ATTRIBUTES

  *attr - Use the convenient attribute macros for the foreground and
  background colors supplied in the QWIKC unit rather than having to use TC
  functions or procedures to get a desired color, for example:

    makewindow( 1, 1, 8, 8, WHITE+BLUE_BG, YELLOW+BLUE_BG, SINGLE_BORDER,
                AWINDOW );

  will make a window with a white on blue window and yellow on blue border.
  All subsequent routines will use these attributes for writing.  Turbo C's
  textattr function is called, setting the attribute to the window attribute
  in case TC's screen functions are used.  The foreground macros in QWIKC are
  duplicates of those in conio.h and are repeated here for convenience:

    BLACK         0x00       DARKGRAY      0x08
    BLUE          0x01       LIGHTBLUE     0x09
    GREEN         0x02       LIGHTGREEN    0x0A
    CYAN          0x03       LIGHTCYAN     0x0B
    RED           0x04       LIGHTRED      0x0C
    MAGENTA       0x05       LIGHTMAGENTA  0x0D
    BROWN         0x06       YELLOW        0x0E
    LIGHTGRAY     0x07       WHITE         0x0F
    BLINK         0x80

  In addition, the QWIKC background color constants were included to take
  advantage of macro addition.

    BLACK_BG     0x00
    BLUE_BG      0x10
    GREEN_BG     0x20
    CYAN_BG      0x30
    RED_BG       0x40
    MAGENTA_BG   0x50
    BROWN_BG     0x60
    LIGHTGRAY_BG 0x70
    SAMEATTR     -1

  SAMEATTR - A powerful and unique feature of all WNDWC routines is the use
  of the macro SAMEATTR.  If SAMEATTR, or a negative value, is used as an
  attribute, the routine will suppress any changes to the attributes and use
  what is currently on the screen.



Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson