home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / utility / misc / dropmenu.lha / DropMenu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-10  |  3.1 KB  |  111 lines

  1. /*****************************************************************************/
  2. /*                          DropMenu - Drop Down Menu Commodity              */
  3. /*                                                                           */
  4. /*                    Public Domain - Written 1992 by Paul Wilkinson         */
  5. /*                         See DropMenu.doc for more information             */
  6. /*                                                                           */
  7. /*                    Contact the author at:                                 */
  8. /*                                  24 Armstrong Ave                         */
  9. /*                                  Mt. Warrigal NSW                         */
  10. /*                                  2528                                     */
  11. /*                                  Australia                                */
  12. /*                                                                           */
  13. /*****************************************************************************/
  14.  
  15.  
  16. #asm
  17.     dc.b '$VER: DropMenu 1.1 (9.10.92)'
  18. #endasm
  19.  
  20. #include <exec/types.h>
  21. #include <intuition/intuition.h>
  22. #include <libraries/commodities.h>
  23. #include <dos/dos.h>
  24. #include <dos/dosextens.h>
  25. #include <dos/dostags.h>
  26. #include <functions.h>
  27. #include <fcntl.h>
  28.  
  29.  
  30. long Initialise(int argc,char *argv[]);
  31. void CloseAll();
  32. void Process();
  33. VOID CXEventHandler(CxMsg *CxMessage,CxObj *CxObject);
  34. void ShutdownCx();
  35. BYTE SetupCx(UBYTE **,LONG *);
  36. long HandleCxMsg(CxMsg *);
  37.  
  38. struct IntuitionBase *IntuitionBase=NULL;
  39. struct GadToolsBase *GadToolsBase=NULL;
  40. struct IconBase *IconBase=NULL;
  41. struct CxBase *CxBase=NULL;
  42. struct AslBase *AslBase=NULL;
  43. struct BattClockBase *BattClockBase;
  44. struct BattMemBase *BattMemBase;
  45. struct ConsoleDevice *ConsoleDevice;
  46. struct DiskfontBase *DiskfontBase;
  47. struct ExpansionBase *ExpansionBase;
  48. struct GfxBase *GfxBase;
  49. struct IFFParseBase *IFFParseBase;
  50. struct InputBase *InputBase;
  51. struct KeymapBase *KeymapBase;
  52. struct LayersBase *LayersBase;
  53. struct MathIeeeSingBasBase *MathIeeeSingBasBase;
  54. struct MathIeeeSingTransBase *MathIeeeSingTransBase;
  55. struct MiscBase *MiscBase;
  56. struct PotgoBase *PotgoBase;
  57. struct RamdriveDevice *RamdriveDevice;
  58. struct TimerBase *TimerBase;
  59. struct TranslatorBase *TranslatorBase;
  60. struct UtilityBase *UtilityBase;
  61. struct WorkbenchBase *WorkbenchBase;
  62. ULONG  stdin;
  63. ULONG  stdout;
  64.  
  65.         /* Commodities interface data. */
  66.  
  67. struct MsgPort          *CxPort;
  68. CxObj                   *Broker;
  69. int Active = TRUE;
  70.  
  71.  
  72.         /* A new broker definition, Commodities needs this. */
  73.  
  74. struct NewBroker NewBroker =
  75. {
  76.         NB_VERSION,
  77.         "DropMenu",
  78.         "DropMenu 1.0",
  79.         "Menu manipulation commodity",
  80.         NBU_NOTIFY | NBU_UNIQUE,
  81.         0,0,NULL,0
  82. };
  83.  
  84.  
  85. struct EasyStruct TerminalRQ = {
  86.             sizeof (struct EasyStruct),
  87.             0,
  88.             "IFFBeep Version 3.",
  89.             "Error!\n%s\n",
  90.             "Exit"
  91. };
  92.  
  93.  
  94. char *errortxt[] = {
  95.     "",
  96.     "",
  97.     "No Commodities.library",
  98.     "No Icon.library",
  99.     "Could not set up commodity"
  100.     };
  101.  
  102.  
  103.  
  104. UBYTE swallowed=0;        /* Should we swallow a mouse up? */
  105. WORD  xpos,ypos;        /* Save xpos & ypos of mouse down */
  106.  
  107.  
  108.  
  109.  
  110.  
  111.