home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / Pict2Ascii 1.03 / Rsrc / Pict2Ascii.r < prev    next >
Encoding:
Text File  |  1997-07-10  |  1.6 KB  |  76 lines  |  [TEXT/CWIE]

  1. // =================================================================================
  2. //    Pict2Ascii.r                                        1997 BB's Team inc. All rights reserved
  3. // =================================================================================
  4.  
  5. #include "Types.r"
  6.  
  7. // ---------------------------------------------------------------------------------
  8. //        • TMPL
  9. // ---------------------------------------------------------------------------------
  10.  
  11. // define the TMPL resource type (not standard, it seems !)
  12. type 'TMPL' {
  13.     wide array {
  14.         pstring;
  15.         literal longint;
  16.     };
  17. };
  18.  
  19.  
  20. // ---------------------------------------------------------------------------------
  21. //        • Excl
  22. // ---------------------------------------------------------------------------------
  23.  
  24. // define new resource type
  25. type 'Excl' {
  26.         integer = $$CountOf(ExclArray);    /* count array elements */
  27.         array ExclArray {
  28.                 byte;                                /* excluded characters */
  29.         };
  30. };
  31.  
  32. // provide a template to edit 'Excl' resources
  33. resource 'TMPL' (128, "Excl") {
  34.     {
  35.         "Count",            'OCNT',
  36.         "*****",            'LSTC',
  37.         "Excluded",        'UBYT',
  38.         "*****",            'LSTE',
  39.     }
  40. };
  41.  
  42. // define the 'Excl' resource 128
  43. resource 'Excl' (128, "Excluded characters") {
  44.     {
  45.         127,
  46.     };
  47. };
  48.  
  49.  
  50. // ---------------------------------------------------------------------------------
  51. //        • hide
  52. // ---------------------------------------------------------------------------------
  53. type 'hide' {
  54.         byte;
  55.         byte;
  56.         byte;
  57.         byte;
  58. };
  59.  
  60. resource 'TMPL' (130, "hide") {
  61.     {
  62.         "Width base char",            'DBYT',
  63.         "Width versus char",            'DBYT',
  64.         "# repeat",                        'DBYT',
  65.         "Size for monoSpace test",    'DBYT',
  66.     };
  67. };
  68.  
  69. resource 'hide' (128, "hide") {
  70.     'A',
  71.     'i',
  72.       1,
  73.       9,
  74. };
  75.  
  76.