home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mltcol.zip / README < prev   
Text File  |  1993-05-27  |  2KB  |  53 lines

  1. The files you have here contain all the code that is necessary to build
  2. dialog boxes with multi-column list boxes as well as the window proc for
  3. simple entry fields that restrict the user to certain types of input (
  4. alpha only, numeric only, force to upper ... ).
  5.  
  6. Restrictive Entry Fields
  7.     After looking at many of the libraries and DLLs that were available
  8.     3 or 4 years ago that 'claimed' to have reliable restricted data
  9.     entry fields we wrote our own. All they we ever saw acted too
  10.     different from normal entry fields to be added in to our
  11.     application. The code is very simple. If fact it probably could be
  12.     reduced in size a little more but since I am superstitious about
  13.     changing working code many of the swithches and ifs used in the
  14.     WM_CHAR code remain. This is the base code for all of our other
  15.     special entry fields ( International money and true formatted fields
  16.     such as Social Security #, Phone #s ... ). The module edit.c can
  17.     easily be extended to define any type of data to be entered.
  18.  
  19. Multi-Column List Boxes
  20.     This is a nice example of implementing a multi-column list box
  21.     without resorting to setting the list box font to a non-porportional
  22.     (ugly) font. Each column of the text string to be added to the list
  23.     box is measured to find the maximum width entry for that column a
  24.     buffer of LONGs saves the max width. The WinEnableWindowUpdate
  25.     before the insert and the WinShowWindow after allows the list box to
  26.     be repainted for each insert. Without this code the columns will be
  27.     painted in a jagged manner until each column is repainted
  28.     individually. The window proc to the list box also accesses a user
  29.     defined window that contains the text of the column headings.
  30.  
  31.  
  32. Files List
  33.     Readme      -   This file
  34.     MCol.c      -   main and Dlg Box proc code
  35.     MCol.Dlg    -   Dlg definition
  36.     MCol.h      -   Dlg defines
  37.     MCol.rc     -   RC file
  38.     MCol.mak    -   MSC 6.0 make file
  39.     Edit.c      -   Edit field window proc code
  40.     Edit.h      -   Edit field defines and structure definitions
  41.     ListBx.c    -   Multi-Column window proc code
  42.  
  43.  
  44. For more information please contact:
  45.  
  46.     Bp. Gary T. James
  47.     American Airlines
  48.     4200 American Blvd.
  49.     Fort Worth, TX. 76155
  50.     Tel: (817) 963-3821 or (817) 963-3431
  51.         OR
  52.     CIS: 75010,3221
  53.