home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / DMSCLR.ZIP / DMSCOLOR.DOC < prev    next >
Encoding:
Text File  |  1988-08-12  |  18.0 KB  |  525 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.                                    DMSCOLOR
  26.  
  27.                      A color set utility for Clipper S'87
  28.  
  29.  
  30.  
  31.                                     v.1.00
  32.                                   Bob Laszko
  33.                                 August 10, 1988
  34.  
  35.  
  36.                                 Copyright 1988
  37.                             Data Management Systems
  38.                               All rights reserved
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.          INTRODUCTION
  74.  
  75.               DMSCOLOR is the end result of our need for a classy,
  76.          easy to use color setting utility for Clipper. The basic
  77.          design concept is:
  78.  
  79.               1. Choose from a given set of standard application
  80.                  screens.
  81.               2. Display the screen in miniature and highlight the
  82.                  various areas designated as colorable.
  83.               3. Display a palette of available foreground/background
  84.                  or foreground only colors and allow painless testing
  85.                  of all color combinations.
  86.               4. Return a Clipper compatible SET COLOR TO string based
  87.                  on the color selections.
  88.  
  89.               We feel that we have met these specifications - in fact
  90.          we felt them good enough to share with other Clipper
  91.          developers.
  92.               In it's current distributed form, DMSCOLOR consists of
  93.          the color selection utility (DMSCOLOR.EXE), various support
  94.          *.MEM files, and a utility to allow changes to the default
  95.          color settings (SETDEF.OBJ).
  96.  
  97.  
  98.          LEGAL, RIGHTS, & OTHER STUFF
  99.  
  100.               DMSCOLOR, as distributed in it's present form, is a
  101.          shareware product. It is not released into the public domain.
  102.          Data Management Systems reserves all rights to DMSCOLOR as
  103.          provided by US Copyright laws. You may use DMSCOLOR in your
  104.          applications, both personal and commercial, without royalty
  105.          obligations.
  106.  
  107.               Although a great deal of time and effort have been spent
  108.          designing, coding and debugging this utility, it cannot be
  109.          certain that it is totally error free. It should be clearly
  110.          understood that DMSCOLOR is released "as is". Data Management
  111.          Systems makes no warranties, expressed nor implied, of
  112.          merchantability and fitness for a particular purpose. In no
  113.          event shall Data Management Systems be liable for any direct,
  114.          indirect, or consequential damages, real or imagined.
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128. ────────────────────────────────────────────────────────────────────────────────
  129. DMSCOLOR             Copyright 1988 Data Management Systems               - 1 -
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.          RUNNING DMSCOLOR
  139.  
  140.               Shown below is main menu for DMSCOLOR:
  141. 
  142.                             ╔════════════════════════════════════════╦═════════════════════════════════════╗
  143.                             ║ Data Management Systems                ║ Current Period  08/12/88 - 08/12/88 ║
  144.                             ╠═══════════════════════════╤════════════╩═══════╤═════════════════════════════╣
  145.                             ║                           │  CONFIGURE COLORS  │                             ║
  146.                             ║                           └────────────────────┘                             ║
  147.                             ║                                                                              ║
  148.                             ║                             1.. Menus                                        ║
  149.                             ║                             2.. Entry Screens                                ║
  150.                             ║                             3.. Scans                                        ║
  151.                             ║                             4.. Adds                                         ║
  152.                             ║                                                                              ║
  153.                             ║                             5.. Cancel All Color Changes                     ║
  154.                             ║                             6.. Restore All Default Colors                   ║
  155.                             ║                                                                              ║
  156.                             ╠══════════════════════════════════════════════════════════════════════════════╣
  157.                             ║                          Press Desired Option Key #                          ║
  158.                             ╚══════════════════════════════════════════════════════════════════════════════╝
  159. 
  160.  
  161.               Options 1 - 4 will take you to actual color set screens.
  162.          These are the four basic types of screens that we use in our
  163.          applications:
  164.  
  165.                    1.. Menus - you are looking at one now
  166.                    2.. Entry Screens - basically the same layout as a
  167.                        menu; data entry completed here
  168.                    3.. Scans - on-screen lookup tables
  169.                    4.. Adds - when a required item is not on file
  170.                        (ie.. a customer), we allow the item to be
  171.                        added immediately as opposed to quitting the
  172.                        current option and running a maintenance
  173.                        routine.
  174.  
  175.               Option 5, Cancel All Color Changes, will negate color
  176.          changes made to all four screens, during the current session.
  177.  
  178.               Option 6, Restore All Default Colors, will re-install
  179.          the "factory set" colors to all four screens.
  180.  
  181.               To quit the program, press ENTER or ESC.
  182.  
  183.               We have tried to make this utility as self-explanatory
  184.          as possible. Here are a few tips:
  185.  
  186.               1. The current option is always shown in the upper left
  187.                  of the screen.
  188.               2. Instructions, as needed, are always found in the
  189.                  lower part of the screen.
  190.               3. Play with it. Instead of cluttering a screen with a
  191.                  myriad of directions (which you don't need after you
  192.                  get a feel for the program), screens are clean and
  193.                  actions required are (hopefully) self-evident.
  194.  
  195.  
  196. ────────────────────────────────────────────────────────────────────────────────
  197. DMSCOLOR             Copyright 1988 Data Management Systems               - 2 -
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.          USING DMSCOLOR FOR YOUR APPLICATIONS
  207.  
  208.               First of all, you have to love our default screens. They
  209.          represent our Standard Toolbox for applications. If you can
  210.          stomach this, use the following memvars, found in XXXDATA.MEM
  211.  
  212.               M_CFR          menu FRame color
  213.               M_CHEAD        menu HEADer color
  214.               M_CMT          Menu Title color
  215.               M_CTEXT        menu TEXT color
  216.               M_CINS         menu INStruction color
  217.  
  218.               M_COLDGET      OLD GET color (unselected)
  219.               M_CCURGET      CURrent GET color (selected)
  220.  
  221.               M_CSCANFR      SCAN FRame color
  222.               M_CSCANTIT     SCAN TITle color
  223.               M_CSCANTXT     SCAN TeXT color
  224.               M_CSCANHI      SCAN HIghlight color
  225.               M_CSCANINS     SCAN INStruction color
  226.  
  227.               M_CADDFR       ADD FRame color
  228.               M_CADDTIT      ADD TITle color
  229.               M_CADDTXT      ADD TeXT color
  230.               M_CADDOG       ADD Old Get color (unselected)
  231.               M_CADDCG       ADD Current Get color (selected)
  232.               M_CADDINS      ADD INStruction color
  233.  
  234.               M_CDFT         DeFaulT color:
  235.                              M_CTEXT + M_CCURGET + M_COLDGET
  236.  
  237.               M_CSCANDFT     SCAN DeFaulT color:
  238.                              M_CSCANTXT + M_CCURGET + M_COLDGET
  239.  
  240.               M_CADDDFT      ADD DeFaulT color:
  241.                              M_CADDTXT + M_CADDCG + M_ADDOG
  242.  
  243.               M_ACTPERFR     ACTive PERiod FRom - date memvar
  244.               M_ACTPERTO     ACTive PERiod TO - date memvar
  245.               M_COMPANY      COMPANY name - character, length = 30
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262. ────────────────────────────────────────────────────────────────────────────────
  263. DMSCOLOR             Copyright 1988 Data Management Systems               - 3 -
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.               Following are the four color change screens used in
  273.          DMSCOLOR, with the memvars from XXXDATA.MEM identified:
  274.  
  275.                         ╔══════════════════════════════════════╗
  276.          M_CHEAD ───────> Company Name                         ║
  277.                         ╠═══════════╤══════════════╤═══════════╣
  278.          M_CMT ─────────────────────>  MENU TITLE  │           ║
  279.                         ║           └──────────────┘           ║
  280.          M_CFR ────────>║                                      ║
  281.                         ║            1.. Option                ║
  282.          M_CTEXT ──────────────────> 2.. Option                ║
  283.                         ║                                      ║
  284.                         ╠══════════════════════════════════════╣
  285.          M_CINS ──────────────────> Instruction Area           ║
  286.                         ╚══════════════════════════════════════╝
  287.  
  288.                         ╔══════════════════════════════════════╗
  289.          M_CHEAD ───────> Option Name                          ║
  290.                         ╠══════════════════════════════════════╣
  291.                         ║                                      ║
  292.          M_CTEXT ───────> Field Title  Previous Field Response <──── M_COLDGET
  293.                         ║ Field Title  Current Field Response  <──── M_CCURGET
  294.          M_CFR ────────>║ Field Title  Next Field Response     <──── M_COLDGET
  295.                         ║                                      ║
  296.                         ║                                      ║
  297.                         ╠══════════════════════════════════════╣
  298.          M_CINS ──────────────────> Instruction Area           ║
  299.                         ╚══════════════════════════════════════╝
  300.  
  301.                         ╔══════════════════════════════════════╗
  302.          M_CHEAD ───────> Option Name                          ║
  303.                         ╠══════════════════════════════════════╣
  304.          M_CSCANTIT ──────────────────────> Scan Title ]──────┐║
  305.                         ║               │ Scan Information    │║
  306.          M_CSCANHI ─────────────────────>█Scan Information████│║
  307.                         ║               │ Scan Information    │║
  308.          M_CSCANTXT ────────────────────> Scan Information    │║
  309.          M_CSCANFR ────────────────────>└─────────────────────┘║
  310.          M_CSCANFR ────>┌──────────────────────────────────────┐
  311.          M_CSCANINS ──────────────> Instruction Area           │
  312.                         └──────────────────────────────────────┘
  313.  
  314.                         ╔══════════════════════════════════════╗
  315.          M_CHEAD ───────> Option Name                          ║
  316.          M_CFR ────────>╠══════════════════════════════════════╣
  317.          M_CADDTIT ────────> Add Title ]──────────────────────┐║
  318.                         ║│                                    │║
  319.          M_CADDTXT ──────> Field Title  Previous Response <───────── M_CADDOG
  320.                         ║│ Field Title  Current Response  <───────── M_CADDCG
  321.                         ║│ Field Title  Next Response     <───────── M_CADDOG
  322.          M_CADDFR ──────>└────────────────────────────────────┘║
  323.          M_CADDFR ─────>┌──────────────────────────────────────┐
  324.          M_CADDINS ───────────────> Instruction Area           │
  325.                         └──────────────────────────────────────┘
  326.  
  327.  
  328. ────────────────────────────────────────────────────────────────────────────────
  329. DMSCOLOR             Copyright 1988 Data Management Systems               - 4 -
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.               As you can see, some memvars are used in more than one
  339.          screen (ie.. M_CFR). In these instances any change in one
  340.          screen is reflected in all others.
  341.               Using the memvars shown on the previous page, three
  342.          default memvars are created: M_CDFT, M_CSCANDFT, M_CADDDFT.
  343.          These are complete SET COLOR TO strings representing the
  344.          standard,enhanced,,,unselected color settings.
  345.               Having access to each "component" color setting along
  346.          with the default color strings gives you complete control
  347.          over your screens.
  348.  
  349.  
  350.          CREATING NEW DEFAULT COLORS
  351.  
  352.               The default colors represent what we feel are the most
  353.          aesthetically appealing screens. Everybody naturally has
  354.          their own opinion or this program would have no use in the
  355.          first place. Follow these steps if you wish to create your
  356.          own default colors:
  357.  
  358.               1. Make a backup copy of the file DEFCOLOR.MEM.
  359.               2. Run DMSCOLOR and set the colors of your choice
  360.               3. Link the file SETDEF.OBJ:
  361.                    with PLINK86 - PLINK86 FILE SETDEF
  362.                    with TLINK   - TLINK SETDEF,,,CLIPPER
  363.               4. Run SETDEF
  364.  
  365.               A new DEFCOLOR.MEM file will be created, using your new
  366.          color preferences.
  367.  
  368.  
  369.          NOTICE: CLIPPER EXTENDED VIDEO ROUTINES
  370.  
  371.               The first version (alpha) of DMSCOLOR utilized a popular
  372.          technique of changing the attribute byte in video memory to
  373.          display new colors. This was certainly faster than re-writing
  374.          the screen through Clipper's @...SAY command, but I wanted
  375.          something faster.....
  376.               Speed came through the idea of saving a portion of the
  377.          screen with SAVESCREEN(), changing the attribute bytes within
  378.          the scrn_memvar, then using RESTSCREEN() to pop the changes
  379.          onto the screen. Why is this faster ?? I'm going to hazard a
  380.          guess and say that moving a byte from place to place within
  381.          standard RAM is much faster than moving a byte from standard
  382.          RAM to the RAM on a video card. Of course SAVESCREEN() /
  383.          RESTSCREEN() eventually moves the bytes to video RAM, but it
  384.          seems to be done in one motion and is very fast. Comparison
  385.          tests showed this new method to be twice as fast, whether
  386.          running on an AST/386 with a Paradise VGA Plus card or a
  387.          standard IBM XT with a monochrome card
  388.               Should you decide to register DMSCOLOR you will receive
  389.          the ASM & OBJ files for manipulating the attribute bytes of a
  390.          SAVESCREEN() memvar, writing attribute bytes directly to the
  391.          video card, and writing only the character byte (no
  392.          attribute) to the video card.
  393.  
  394. ────────────────────────────────────────────────────────────────────────────────
  395. DMSCOLOR             Copyright 1988 Data Management Systems               - 5 -
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.          REGISTRATION
  405.  
  406.               We have met all internal needs for a color set utility
  407.          with the current release of DMSCOLOR. It's distribution into
  408.          the shareware arena is primarily designed to stimulate
  409.          feedback and further the art of color set routines. However,
  410.          being a commercial entity, we have decided to make the
  411.          following available to registered users:
  412.  
  413.               1. Complete, documented source code (*.PRG, *.ASM) for
  414.                  DMSCOLOR, SETDEF and all the utility programs that
  415.                  make it all come together.
  416.               2. Comprehensive documentation breaking down the source
  417.                  code into its various components, showing the logic
  418.                  behind the programs and tips to customization for
  419.                  your needs.
  420.               3. Unlimited voice & BBS support.
  421.               4. Tips & suggestions for using color more effectively
  422.                  with Clipper.
  423.  
  424.               The registration fee is $30 US funds. Checks can be made
  425.          payable to Data Management Systems.
  426.  
  427.               Plans are in the mill to create a self-supporting color
  428.          set utility centered around DMSCOLOR. Features include:
  429.  
  430.               1. Creation of customized screens (screen painter).
  431.               2. Custom definition of colorable areas within the
  432.                  screens.
  433.               3. Generation of source code based on 1 & 2 above.
  434.  
  435.               While the plans have been drawn up, coding has not yet
  436.          begun. Creation of this utility will depend upon registration
  437.          activity. If you like what you see, register it and encourage
  438.          the development of this new utility. Registered users will be
  439.          allowed an upgrade at a nominal fee.
  440.  
  441.  
  442.          DATA MANAGEMENT SYSTEMS ??
  443.  
  444.               We are a custom software house located in Fallbrook,
  445.          California. Founded in 1983, our primary vehicle of
  446.          developement is Clipper. We also provide consulting,
  447.          training, data processing, hardware & software resale, and
  448.          preventive maintenance.
  449.  
  450.  
  451.               Please send any comments, suggestions, gripes, and of
  452.          course registrations to:
  453.  
  454.               Bob Laszko
  455.               Data Management Systems
  456.               PO Box 3104
  457.               Fallbrook, Ca  92028
  458.               (619) 728-0984
  459.  
  460. ────────────────────────────────────────────────────────────────────────────────
  461. DMSCOLOR             Copyright 1988 Data Management Systems               - 6 -
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.               BBS support is provided via The File Bank's Clipper
  471.          Support Conference. This is one of the premier BBS's in
  472.          Southern California with something of interest from the
  473.          novice to the guru !! It is owned and operated by Bob Laszko
  474.          (this author's father). You can reach The File Bank at
  475.          (619) 728-4318.
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526. ────────────────────────────────────────────────────────────────────────────────
  527. DMSCOLOR             Copyright 1988 Data Management Systems               - 7 -