home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / e / amigae / modulessrc / intuition / sghooks.e < prev   
Text File  |  1995-07-05  |  2KB  |  85 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. MODULE 'devices/inputevent',
  5.        'graphics/text',
  6.        'intuition/cghooks',
  7.        'intuition/intuition',
  8.        'utility/hooks'
  9.  
  10. OBJECT stringextend
  11.   font:PTR TO textfont
  12.   pens[2]:ARRAY
  13.   activepens[2]:ARRAY
  14.   initialmodes:LONG
  15.   edithook:PTR TO hook
  16.   workbuffer:PTR TO CHAR
  17.   reserved[4]:ARRAY OF LONG
  18. ENDOBJECT     /* SIZEOF=36 */
  19.  
  20. OBJECT sgwork
  21.   gadget:PTR TO gadget
  22.   stringinfo:PTR TO stringinfo
  23.   workbuffer:PTR TO CHAR
  24.   prevbuffer:PTR TO CHAR
  25.   modes:LONG
  26.   ievent:PTR TO inputevent
  27.   code:INT  -> This is unsigned
  28.   bufferpos:INT
  29.   numchars:INT
  30.   actions:LONG
  31.   longint:LONG
  32.   gadgetinfo:PTR TO gadgetinfo
  33.   editop:INT  -> This is unsigned
  34. ENDOBJECT     /* SIZEOF=44 */
  35.  
  36. CONST EO_NOOP=1,
  37.       EO_DELBACKWARD=2,
  38.       EO_DELFORWARD=3,
  39.       EO_MOVECURSOR=4,
  40.       EO_ENTER=5,
  41.       EO_RESET=6,
  42.       EO_REPLACECHAR=7,
  43.       EO_INSERTCHAR=8,
  44.       EO_BADFORMAT=9,
  45.       EO_BIGCHANGE=10,
  46.       EO_UNDO=11,
  47.       EO_CLEAR=12,
  48.       EO_SPECIAL=13,
  49.       SGM_REPLACE=1,
  50.       SGMB_REPLACE=0,
  51.       SGMF_REPLACE=1,
  52.       SGM_FIXEDFIELD=2,
  53.       SGMB_FIXEDFIELD=1,
  54.       SGMF_FIXEDFIELD=2,
  55.       SGM_NOFILTER=4,
  56.       SGMB_NOFILTER=2,
  57.       SGMF_NOFILTER=4,
  58.       SGM_EXITHELP=$80,
  59.       SGMB_EXITHELP=7,
  60.       SGMF_EXITHELP=$80,
  61.       SGA_USE=1,
  62.       SGAB_USE=0,
  63.       SGAF_USE=1,
  64.       SGA_END=2,
  65.       SGAB_END=1,
  66.       SGAF_END=2,
  67.       SGA_BEEP=4,
  68.       SGAB_BEEP=2,
  69.       SGAF_BEEP=4,
  70.       SGA_REUSE=8,
  71.       SGAB_REUSE=3,
  72.       SGAF_REUSE=8,
  73.       SGA_REDISPLAY=16,
  74.       SGAB_REDISPLAY=4,
  75.       SGAF_REDISPLAY=16,
  76.       SGA_NEXTACTIVE=$20,
  77.       SGAB_NEXTACTIVE=5,
  78.       SGAF_NEXTACTIVE=$20,
  79.       SGA_PREVACTIVE=$40,
  80.       SGAB_PREVACTIVE=6,
  81.       SGAF_PREVACTIVE=$40,
  82.       SGH_KEY=1,
  83.       SGH_CLICK=2
  84.  
  85.