home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Programming / BGUI / bgui_e / sources / emodules / bgui / bgui_cx.e < prev    next >
Encoding:
Text File  |  1998-11-28  |  3.3 KB  |  86 lines

  1. OPT MODULE
  2. OPT EXPORT
  3. OPT PREPROCESS
  4.  
  5. /*
  6.  * $VER: bgui/cx.e 41.10 (28.11.98)
  7.  * Commodity class structures and constants.
  8.  *
  9.  * (C) Copyright 1998 Manuel Lemos.
  10.  * (C) Copyright 1996-1997 Ian J. Einman.
  11.  * (C) Copyright 1993-1996 Jaba Development.
  12.  * (C) Copyright 1993-1996 Jan van den Baard.
  13.  * (C) Copyright 1996-1998 Dominique Dutoit.
  14.  * All Rights Reserved.
  15.  *
  16.  */
  17.  
  18. MODULE  'libraries/commodities',
  19.         'libraries/bgui'
  20.  
  21. CONST   COMM_Name               = BGUI_TB+1861,  /* I---- */
  22.         COMM_Title              = BGUI_TB+1862,  /* I---- */
  23.         COMM_Description        = BGUI_TB+1863,  /* I---- */
  24.         COMM_Unique             = BGUI_TB+1864,  /* I---- */
  25.         COMM_Notify             = BGUI_TB+1865,  /* I---- */
  26.         COMM_ShowHide           = BGUI_TB+1866,  /* I---- */
  27.         COMM_Priority           = BGUI_TB+1867,  /* I---- */
  28.         COMM_SigMask            = BGUI_TB+1868,  /* --G-- */
  29.         COMM_ErrorCode          = BGUI_TB+1869,  /* --G-- */
  30.  
  31. /* New Methods. */
  32.         CM_ADDHOTKEY            = BGUI_MB+661
  33.  
  34. /* Add a hot-key to the broker. */
  35. OBJECT cmAddHotKey
  36.     methodID:LONG           /* CM_ADDHOTKEY             */
  37.     inputDescription:PTR TO LONG    /* Key input description.   */
  38.     keyID:LONG                      /* Key command ID.      */
  39.     flags:LONG                      /* See below.           */
  40. ENDOBJECT
  41.  
  42. /* Flags. */
  43. SET     CAHF_DISABLED       /* The key is added but won't work.         */
  44.  
  45. CONST   CM_REMHOTKEY            = BGUI_MB+662, /* Remove a key.      */
  46.         CM_DISABLEHOTKEY        = BGUI_MB+663, /* Disable a key.     */
  47.         CM_ENABLEHOTKEY         = BGUI_MB+664 /* Enable a key.      */
  48.  
  49. /* Do a key command. */
  50. OBJECT cmDoKeyCommand
  51.     methodID:LONG   /* See above.               */
  52.     keyID:LONG      /* ID of the key.           */
  53. ENDOBJECT
  54.  
  55. CONST   CM_ENABLEBROKER         = BGUI_MB+665, /* Enable broker.     */
  56.         CM_DISABLEBROKER        = BGUI_MB+666, /* Disable broker.    */
  57.         CM_MSGINFO              = BGUI_MB+667
  58.  
  59. /* Obtain info from a CxMsg. */
  60. OBJECT cmMsgInfo
  61.     methodID:LONG           /* CM_MSGINFO               */
  62.     infoType:PTR TO LONG    /* Storage for CxMsgType() result.  */
  63.     infoID:PTR TO LONG      /* Storage for CxMsgID() result.    */
  64.     infoData:PTR TO LONG    /* Storage for CxMsgData() result.  */
  65. ENDOBJECT
  66.  
  67. /* Possible CM_MSGINFO return codes. */
  68. CONST   CMMI_NOMORE             = -1,   /* No more messages.            */
  69.         CMMI_KILL               = $10000, /* Remove yourself.     V40     */
  70.         CMMI_DISABLE            = $20000, /* You have been disabled.  V40     */
  71.         CMMI_ENABLE             = $30000, /* You have been enabled.   V40     */
  72.         CMMI_UNIQUE             = $40000, /* Unique violation ocured. V40     */
  73.         CMMI_APPEAR             = $50000, /* Show yourself.       V40     */
  74.         CMMI_DISAPPEAR          = $60000 /* Hide yourself.       V40     */
  75.  
  76. /*
  77.  *  CM_ADDHOTKEY error codes obtainable using
  78.  *  the COMM_ErrorCode attribute.
  79.  */
  80. ENUM    CMERR_OK,               /* OK. No problems.         */
  81.         CMERR_NO_MEMORY,        /* Out of memory.           */
  82.         CMERR_KEYID_IN_USE,     /* Key ID already used.             */
  83.         CMERR_KEY_CREATION,     /* Key creation failure.        */
  84.         CMERR_CXOBJERROR        /* CxObjError() reported failure.   */
  85.  
  86.