home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / drdobbs / 1988 / 03 / krute / krute.ls4 < prev    next >
Text File  |  1987-12-03  |  3KB  |  68 lines

  1. *----------------------------------- file information -----------------------------    *
  2. *                                                                                                                *
  3. *    rectCDEFEqu.Txt                                                                                        *        
  4. *                                                                                                                *
  5. *                                                                                                                *
  6. *    Private definitions for rectCDEF.Asm                                                            *
  7. *                                                                                                                *
  8. *    Edited with QUED/M 2.04                                                                                *
  9. *    Compiled under MDS 2.01                                                                                *
  10. *                                                                                                                *
  11. *    Written and ⌐1987 by Stan Krute. All rights reserved. No part of this file, or    *
  12. *    the object code it leads to, may be reproduced, in any form or by any means,        *
  13. *     without    the express written permission of the author and copyright holder.         *
  14. *                                                                                                                *
  15. *    Timestamp:        1:56 am EST             September 29, 1987                                    *
  16. *    Spacestamp:    21E Halcyon Drive    West Yarmouth, Massacusetts    02673                        *
  17. *                                                                                                                *
  18. *    This file looks good in 9 point Courier, QUED/M 2.04 tabs set to 3                    *
  19. *                                                                                                                *
  20. *--------------------------------------------------------------------------------    *
  21.  
  22. *----------------------------------- equates --------------------------------------    *
  23.  
  24. ; stack frame offsets for function parameters
  25. returnAddress        EQU        4        ; return address' offset in frame 
  26. param                    EQU        8        ; for long-word-size parameter
  27. message                EQU         12        ; control message identifies desired operation
  28. theControl            EQU        14        ; calling control's handle's offset in frame 
  29. varCode                EQU        18        ; which variation of the control 
  30. theResult            EQU         20        ; function result offset in frame
  31.  
  32. ; stack frame offsets for automatic (local) variables
  33. entryPenState        EQU    -18        ;  room to hold entry pen state (18 bytes)
  34. currentGrafPort    EQU    -22        ; pointer to current grafPort ( 4 bytes )
  35. curFontAndFace        EQU    -26        ; saved font number and style ( 4 bytes )
  36. curSize                EQU    -28        ; saved font size ( 2 bytes )
  37. fontInfo                EQU    -36        ; information about current font ( 8 bytes )
  38. entryClipRgnCopy    EQU    -40        ; handle to copy of entry clip region (4 bytes)
  39. interiorClipRect    EQU    -48        ; a clipping rectangle (8 bytes) 
  40. pictRect                EQU    -56        ; a PICTure bounding rectangle (8 bytes)
  41. iconRect                EQU    -56        ; an ICON bounding rectangle (8 bytes)
  42. usingCCRsrc            EQU    -58        ; flags use ofcontent change resource (2 bytes)
  43. autoBytes            EQU    58            ; size in bytes of automatic variable area
  44.  
  45. ; hilite codes
  46. inact254                EQU        254    ; hilite code to inactivate control
  47. inact255                EQU        255    ; hilite code to inactivate control
  48.  
  49. ; icon stuff
  50. iconSize                EQU        32        ; width and height of icon
  51.  
  52. ; id's for our control definition
  53. wholePartNumber    EQU        10        ; part number for our whole control
  54.  
  55. ; test bits
  56. textBit                EQU        7        ; if set, it's a text button
  57. pictBit                EQU        6        ; if set, it's a PICT button
  58. iconBit                EQU        5        ; if set, it's an ICON button
  59. outBit                EQU        4        ; if set, the button is outlined
  60. shadBit                EQU        3        ; if set, the button's outline is shadowed
  61. bareBit                EQU        2        ; if set, the button has no outline
  62. invBit                EQU        1        ; if set, the button shows hiliting via inversion
  63. chngBit                EQU        0        ; if set, the button shows hiliting via content change
  64.  
  65. ; the control's data block
  66. cntlDataBlokSize    EQU        8        ; size of the control's data block
  67. firstRsrcHndl        EQU        0        ; offset of first data block field
  68. secondRsrcHndl        EQU        4        ; offset of second data block field