home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / lbl_anom.zip / LABEL.DEF < prev    next >
Text File  |  1988-09-21  |  8KB  |  164 lines

  1. //---------------------------------------------------------------------------
  2. // LABEL.DEF     NPI label object data selectors
  3. // Ashton-Tate (c) 1987, 1988
  4. //
  5. // Updated 9-21-88 KJN
  6. //
  7. // This include file contains all the selectors required for labels.
  8. // *** DO NOT CHANGE ANY OF THE NUMBERS BELOW ***
  9. //
  10. //---------------------------------------------------------------------------
  11. // NOTE:
  12. // Selectors listed in the following table which are shown to have
  13. // "Value: Number" will sometimes return the null string instead
  14. // of the numeric zero.  For logical compares, null is the same
  15. // as zero, however when emitting the value to the output file
  16. // the null string must be converted to a numeric zero explicitly.
  17. // A user defined function is used in the FORM.COD template program
  18. // called NUL2ZERO() for converting null strings to explicit numeric
  19. // zeros.
  20. //---------------------------------------------------------------------------
  21. {
  22. selectors
  23. #lstoff
  24. //
  25. // ELEMENT selectors (FOREACH loop elements)
  26. //
  27. ELEMENT            1000, // All elements types by row & column
  28. BAND_ELEMENT       1102, // Band element (always the first element)
  29. FLD_ELEMENT        1130, // Field element
  30. TEXT_ELEMENT       1085, // Text element
  31. //
  32. // Selectors common to all elements
  33. //
  34. ELEMENT_TYPE        001, // Element types found in labels are:  
  35.                          //     BAND_ELEMENT 
  36.                          //     FLD_ELEMENT 
  37.                          //     TEXT_ELEMENT
  38. ROW_POSITN          225, // Row number of Element
  39.                          // Menu Path: None - Value: Number
  40. COL_POSITN          093, // Column number of Element
  41.                          // Menu Path: None - Value: Number
  42. SYS_FLEN            053, // Element length in layout
  43. SYS_INAME           068, // reserved
  44. SYS_FMT             071, // reserved
  45. SYS_PAGE            090, // reserved
  46. SYS_ROW             092, // reserved
  47. SYS_ATRB            094, // reserved
  48. //
  49. // Frame level selectors - can be accessed at any time
  50. //
  51. NAME                040, // Name of NPI label object
  52.                          // Menu Path: None - Value: String
  53. FRAME_CLASS         181, // Object type (called MENU_TYPE in application.def)
  54.                          // Menu Path: None - Value:11=form, 12=label, 13=report
  55. FRAME_VER           150, // Version #
  56.                          // Menu Path: None - Value: Number
  57. FRAME_FILE_TYPE     151, // File type of object
  58.                          // Menu Path: None - Value: Number
  59. FRAME_PATH          042, // Path of object
  60.                          // Menu Path: None - Value: String
  61. FRAME_NUM_OF_FIELDS 153, // Number of fields
  62.                          // Menu Path: None - Value: Number
  63. LABEL_TALL          170, // Label height
  64. LABEL_WIDE          182, // Label width
  65. LABEL_LMARG         172, // Label left margin
  66. LABEL_VSPACE        173, // Label vertical spacing
  67. LABEL_HSPACE        174, // Label horizontal spacing
  68. LABEL_NUP           175, // Labels across page - number up
  69. dBASE_III_PLUS      215, // Is this a 3+ report
  70.                          // Menu Path: None - Value: 0:No 1:Yes
  71. PRINT_FORM          216, // Print form name
  72.                          // Menu Path: PU   - Value: String    
  73. PRINT_DESTINATION   217, // Where to send output
  74.                          // Menu Path: PDW  - Value: 0: Printer 1:Dos file
  75. PRINT_DOS_FILE      218, // Name of DOS file
  76.                          // Menu Path: PDN  - Value: String    
  77. PRINT_DRIVER        219, // Name of Printer driver 
  78.                          // Menu Path: PDP  - Value: String    
  79. PRINT_TO_SCREEN     220, // Echo outpu to screen
  80.                          // Menu Path: PDE  - Value: Numeric   
  81. PRINT_PITCH         221, // Text Pitch
  82.                          // Menu Path: PCT  - Value: 0:Default 1:Pica 2:Elite   
  83.                          //                          3:Condensed
  84. PRINT_QUALITY       222, // Quality Print
  85.                          // Menu Path: PCQ  - Value: 0:Default 1:Yes 2:No
  86. PRINT_NEW_PAGE      223, // When to goto New page  
  87.                          // Menu Path: PCN  - Value: 0:Before 1:Both 2:None
  88.                          //                          3:After
  89. PRINT_PAUSE         224, // Wait between pages
  90.                          // Menu Path: PCW  - Value: 0:No 1:Yess
  91. PRINT_ADVANCE       226, // Advance page using
  92.                          // Menu Path: PCA  - Value: 0:Form Feeds 1:Line Feeds
  93. PRINT_START_CODES   227, // Starting control codes
  94.                          // Menu Path: PCS  - Value: String
  95. PRINT_END_CODES     228, // Ending control codes
  96.                          // Menu Path: PCE  - Value: String   
  97. PRINT_START_PAGE    229, // Begin on page
  98.                          // Menu Path: POB  - Value: String    
  99. PRINT_END_PAGE      230, // End on page
  100.                          // Menu Path: POB  - Value: String    
  101. PRINT_FIRST_PAGE    231, // First page number
  102.                          // Menu Path: POE  - Value: String    
  103. PRINT_COPIES        232, // Number of copies
  104.                          // Menu Path: PON  - Value: String    
  105. PRINT_PAGE_LENGTH   233, // Length of page
  106.                          // Menu Path: PPL  - Value: String    
  107. PRINT_LEFT_OFFSET   234, // Offeset from left
  108.                          // Menu Path: PPO  - Value: String    
  109. PRINT_LINE_SPACING  235, // Spacing of lines
  110.                          // Menu Path: PPL  - Value: 0:Single 1:Double 2:Triple 
  111. //
  112. // Text attribute selectors (FOREACH Text_element x .... NEXT)
  113. //
  114. TEXT_ITEM           095, // Static text data
  115. //
  116. // Field attribute selectors (FLD_ELEMENT)
  117. //
  118. FLD_FILENAME        060, // Name of file this field is in
  119.                          // Menu Path: None - Value: String
  120. FLD_FIELDNAME       061, // Field name
  121.                          // Menu Path: None - Value: String
  122. FLD_FIELDTYPE       063, // Where the data is coming from
  123.                          // Menu Path: None - Value: 0:dBF field 1:calc'ed 
  124.                          //                    2:sum 3:predefined 4:memory var
  125. FLD_VALUE_TYPE      064, // Field data type in dBF
  126.                          // Menu Path: None - Value: 67:char 68:date 70:float 
  127.                          //                      76:logical 77:memo 78:numeric
  128.                          //  Try chr(fld_value_type) return C:char D:date etc.
  129. FLD_LENGTH          065, // Length of field
  130.                          // Menu Path: None - Value: Number
  131. FLD_DECIMALS        066, // Number of decimal positions
  132.                          // Menu Path: None - Value: Number
  133. FLD_REPWIDTH        067, // width of template in label
  134. FLD_PREDEFINE       070, // Predef fld 0:date 1:time 2:recno 3:pageno
  135. FLD_TEMPLATE        074, // Picture template
  136.                          // Menu Path: FMT - Value: String
  137. FLD_PICFUN          075, // Picture functions
  138.                          // Menu Path: FMP - Value: String
  139. FLD_DESCRIPT        076, // Calc & sum description
  140.                          // Menu Path: FMD - Value: String
  141. FLD_EXPRESSION      077, // Calc expression
  142.                          // Menu Path: FME - Value: String
  143. FLD_STYLE           096, // Field style
  144. #lston                  
  145. ;                       
  146. //
  147. // Values returned by Fld_Style
  148. //
  149. enum User_Font  =   31,
  150.      Soft_space =  128,
  151.      Bold       =  256,
  152.      Italic     =  512,
  153.      Underline  = 1024,
  154.      Superscript= 2048,
  155.      Subscript  = 4096;
  156. //
  157. // Values returned by Fld_Fieldtype
  158. //
  159. enum  Tabl_data=0,   // Table field from a database
  160.       Calc_data,     // Calculated expression
  161.       Summ_data,     // Summary ie. Average, Count, etc.
  162.       Pred_data;     // Predefined ie. Date, Page, etc.
  163. }
  164.