home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 568b.lha / PowerSource_v3.0 / source.lzh / source / MainMenus.c < prev    next >
C/C++ Source or Header  |  1991-09-15  |  4KB  |  70 lines

  1. /*----------------------------------------------------------------------*
  2.     MainMenus.c version 3.0 - © Copyright 1991 Jaba Development
  3.  
  4.     Author : Jan van den Baard
  5.     Purpose: Menu editind menus strips.
  6.  *----------------------------------------------------------------------*/
  7. struct IntuiText MainItemText[] = {
  8.   0,1,JAM2,1,1,NULL,(UBYTE *)"Add a menu",NULL,
  9.   0,1,JAM2,1,1,NULL,(UBYTE *)"Edit menu          »",NULL,
  10.   0,1,JAM2,1,1,NULL,(UBYTE *)"Delete menu        »",NULL,
  11.   0,1,JAM2,1,1,NULL,(UBYTE *)"Insert menu before »",NULL,
  12.   0,1,JAM2,1,1,NULL,(UBYTE *)"Edit items for     »",NULL,
  13.   0,1,JAM2,1,1,NULL,(UBYTE *)"Test Menus",NULL,
  14.   0,1,JAM2,1,1,NULL,(UBYTE *)"Gadgets Menu",NULL };
  15.  
  16. struct MenuItem MainItem[] = {
  17.   &MainItem[1],0,0,164,10,ITEMENABLED+HIGHCOMP+ITEMTEXT+COMMSEQ,0,(APTR)&MainItemText[0],NULL,65,NULL,0,
  18.   &MainItem[2],0,10,164,10,ITEMENABLED+HIGHCOMP+ITEMTEXT,0,(APTR)&MainItemText[1],NULL,0,NULL,0,
  19.   &MainItem[3],0,20,164,10,ITEMENABLED+HIGHCOMP+ITEMTEXT,0,(APTR)&MainItemText[2],NULL,0,NULL,0,
  20.   &MainItem[4],0,30,164,10,ITEMENABLED+HIGHCOMP+ITEMTEXT,0,(APTR)&MainItemText[3],NULL,0,NULL,0,
  21.   &MainItem[5],0,40,164,10,ITEMENABLED+HIGHCOMP+ITEMTEXT,0,(APTR)&MainItemText[4],NULL,0,NULL,0,
  22.   &MainItem[6],0,50,164,10,ITEMENABLED+HIGHCOMP+ITEMTEXT+COMMSEQ,0,(APTR)&MainItemText[5],NULL,84,NULL,0,
  23.   NULL,0,60,164,10,ITEMENABLED+HIGHCOMP+ITEMTEXT+COMMSEQ,0,(APTR)&MainItemText[6],NULL,71,NULL,0 };
  24.  
  25. struct Menu MainMenuStrip[] = {
  26.   NULL,0,0,68,10,MENUENABLED,(BYTE *)"Menus",&MainItem[0],0,0,0,0 };
  27.  
  28. struct IntuiText ItemText[] = {
  29.   0,1,JAM2,1,1,NULL,(UBYTE *)"Add item",NULL,
  30.   0,1,JAM2,1,1,NULL,(UBYTE *)"Edit item            »",NULL,
  31.   0,1,JAM2,1,1,NULL,(UBYTE *)"Delete item          »",NULL,
  32.   0,1,JAM2,1,1,NULL,(UBYTE *)"Insert item before   »",NULL,
  33.   0,1,JAM2,1,1,NULL,(UBYTE *)"Edit subitems for    »",NULL,
  34.   0,1,JAM2,1,1,NULL,(UBYTE *)"Main menu",NULL,
  35.   0,1,JAM2,1,1,NULL,(UBYTE *)"Set MutualExclude",NULL };
  36.  
  37. struct MenuItem TheItem[] = {
  38.   &TheItem[1],0,0,180,10,ITEMENABLED+HIGHCOMP+COMMSEQ+ITEMTEXT,0,(APTR)&ItemText[0],NULL,65,NULL,0,
  39.   &TheItem[2],0,10,180,10,ITEMENABLED+HIGHCOMP+ITEMTEXT,0,(APTR)&ItemText[1],NULL,0,NULL,0,
  40.   &TheItem[3],0,20,180,10,ITEMENABLED+HIGHCOMP+ITEMTEXT,0,(APTR)&ItemText[2],NULL,0,NULL,0,
  41.   &TheItem[4],0,30,180,10,ITEMENABLED+HIGHCOMP+ITEMTEXT,0,(APTR)&ItemText[3],NULL,0,NULL,0,
  42.   &TheItem[5],0,40,180,10,ITEMENABLED+HIGHCOMP+ITEMTEXT,0,(APTR)&ItemText[4],NULL,0,NULL,0,
  43.   &TheItem[6],0,50,180,10,ITEMENABLED+HIGHCOMP+ITEMTEXT+COMMSEQ,0,(APTR)&ItemText[5],NULL,77,NULL,0,
  44.   NULL,0,60,180,10,ITEMENABLED+HIGHCOMP+ITEMTEXT+COMMSEQ,0,(APTR)&ItemText[6],NULL,69,NULL,0 };
  45.  
  46. struct Menu ItemMenuStrip[] = {
  47.   NULL,0,0,52,10,MENUENABLED,(BYTE *)"Items",&TheItem[0],0,0,0,0 };
  48.  
  49. struct IntuiText SubText[] = {
  50.   0,1,JAM2,1,1,NULL,(UBYTE *)"Add subitem",NULL,
  51.   0,1,JAM2,1,1,NULL,(UBYTE *)"Edit subitem          »",NULL,
  52.   0,1,JAM2,1,1,NULL,(UBYTE *)"Delete subitem        »",NULL,
  53.   0,1,JAM2,1,1,NULL,(UBYTE *)"Insert subitem before »",NULL,
  54.   0,1,JAM2,1,1,NULL,(UBYTE *)"Item menu",NULL,
  55.   0,1,JAM2,1,1,NULL,(UBYTE *)"Main menu",NULL,
  56.   0,1,JAM2,1,1,NULL,(UBYTE *)"Set MutualExclude",NULL };
  57.  
  58. struct MenuItem SubItem[] = {
  59.   &SubItem[1],0,0,188,10,ITEMENABLED+HIGHCOMP+COMMSEQ+ITEMTEXT,0,(APTR)&SubText[0],NULL,65,NULL,0,
  60.   &SubItem[2],0,10,188,10,ITEMENABLED+HIGHCOMP+ITEMTEXT,0,(APTR)&SubText[1],NULL,0,NULL,0,
  61.   &SubItem[3],0,20,188,10,ITEMENABLED+HIGHCOMP+ITEMTEXT,0,(APTR)&SubText[2],NULL,0,NULL,0,
  62.   &SubItem[4],0,30,188,10,ITEMENABLED+HIGHCOMP+ITEMTEXT,0,(APTR)&SubText[3],NULL,0,NULL,0,
  63.   &SubItem[5],0,40,188,10,ITEMENABLED+HIGHCOMP+ITEMTEXT+COMMSEQ,0,(APTR)&SubText[4],NULL,73,NULL,0,
  64.   &SubItem[6],0,50,188,10,ITEMENABLED+HIGHCOMP+ITEMTEXT+COMMSEQ,0,(APTR)&SubText[5],NULL,77,NULL,0,
  65.   NULL,0,60,180,10,ITEMENABLED+HIGHCOMP+ITEMTEXT+COMMSEQ,0,(APTR)&SubText[6],NULL,69,NULL,0 };
  66.  
  67.  
  68. struct Menu SubMenuStrip[] = {
  69.   NULL,0,0,76,10,MENUENABLED,(BYTE *)"SubItems",&SubItem[0],0,0,0,0 };
  70.