home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / program / c / spdsrc / testspde.c < prev    next >
C/C++ Source or Header  |  1994-03-31  |  4KB  |  96 lines

  1. #include <aes.h>
  2.  
  3. static TEDINFO rs_tedinfo[] = {
  4. /*0*/    {"012", "Size: ___ pt", "9", IBM,0,TE_CNTR,0x1181,0,0,4,13},
  5. /*1*/    {"TestSpeedo", "", "", IBM,0,TE_CNTR,0x1181,0,0,11,1},
  6. /*2*/    {"by M. J. Maisey", "", "", IBM,0,TE_CNTR,0x1181,0,0,16,1},
  7. /*3*/    {"28/3/94", "", "", IBM,0,TE_CNTR,0x1181,0,0,8,1},
  8. /*4*/    {"012", "Width: ___%", "9", IBM,0,TE_CNTR,0x1181,0,0,4,12},
  9. };
  10.  
  11. OBJECT MAINMENU[] = {
  12. /*0*/    {-1,1,6,G_IBOX,0x0,0x0,(void *)0x0,0,0,160,25},
  13. /*1*/    {6,2,2,G_BOX,0x0,0x0,(void *)0x1100,0,0,160,513},
  14. /*2*/    {1,3,5,G_IBOX,0x0,0x0,(void *)0x0,2,0,26,769},
  15. /*3*/    {4,-1,-1,G_TITLE,0x0,0x0," TestSpeedo", 0,0,12,769},
  16. /*4*/    {5,-1,-1,G_TITLE,0x0,0x0," File", 12,0,6,769},
  17. /*5*/    {2,-1,-1,G_TITLE,0x0,0x0," Window", 18,0,8,769},
  18. /*6*/    {0,7,18,G_IBOX,0x0,0x0,(void *)0x0,0,769,160,19},
  19. /*7*/    {16,8,15,G_BOX,0x0,0x0,(void *)0xff1100,2,0,22,8},
  20. /*8*/    {9,-1,-1,G_STRING,0x0,0x0,"  About TestSpeedo", 0,0,22,1},
  21. /*9*/    {10,-1,-1,G_STRING,0x0,0x8,"----------------------", 0,1,22,1},
  22. /*10*/    {11,-1,-1,G_STRING,0x0,0x0,"  Desk Accessory 1  ", 0,2,22,1},
  23. /*11*/    {12,-1,-1,G_STRING,0x0,0x0,"  Desk Accessory 2  ", 0,3,22,1},
  24. /*12*/    {13,-1,-1,G_STRING,0x0,0x0,"  Desk Accessory 3  ", 0,4,22,1},
  25. /*13*/    {14,-1,-1,G_STRING,0x0,0x0,"  Desk Accessory 4  ", 0,5,22,1},
  26. /*14*/    {15,-1,-1,G_STRING,0x0,0x0,"  Desk Accessory 5  ", 0,6,22,1},
  27. /*15*/    {7,-1,-1,G_STRING,0x0,0x0,"  Desk Accessory 6  ", 0,7,22,1},
  28. /*16*/    {18,17,17,G_BOX,0x0,0x0,(void *)0xff1100,14,0,8,1},
  29. /*17*/    {16,-1,-1,G_STRING,0x0,0x0,"  Quit", 0,0,8,1},
  30. /*18*/    {6,19,21,G_BOX,0x0,0x0,(void *)0xff1100,20,0,11,3},
  31. /*19*/    {20,-1,-1,G_STRING,0x0,0x0,"  Font     ", 0,0,11,1},
  32. /*20*/    {21,-1,-1,G_STRING,0x0,0x0,"  Size     ", 0,1,11,1},
  33. /*21*/    {18,-1,-1,G_STRING,0x20,0x0,"  Width    ", 0,2,11,1},
  34. };
  35.  
  36. OBJECT SIZEMENU[] = {
  37. /*0*/    {-1,1,5,G_BOX,0x0,0x0,(void *)0xff1100,1283,3840,13,5},
  38. /*1*/    {2,-1,-1,G_STRING,0x0,0x0,"  10 pt", 0,0,13,1},
  39. /*2*/    {3,-1,-1,G_STRING,0x0,0x0,"  12 pt", 0,1,13,1},
  40. /*3*/    {4,-1,-1,G_STRING,0x0,0x0,"  18 pt", 0,2,13,1},
  41. /*4*/    {5,-1,-1,G_STRING,0x0,0x0,"  24 pt", 0,3,13,1},
  42. /*5*/    {0,-1,-1,G_STRING,0x20,0x0,"  Other ...", 0,4,13,1},
  43. };
  44.  
  45. OBJECT OTHERSIZE[] = {
  46. /*0*/    {-1,1,3,G_BOX,0x400,0x10,(void *)0x21181,4,1,25,5},
  47. /*1*/    {2,-1,-1,G_BUTTON,0x607,0x0,"OK", 3,3,8,1},
  48. /*2*/    {3,-1,-1,G_BUTTON,0x605,0x0,"Cancel", 14,3,8,1},
  49. /*3*/    {0,-1,-1,G_FTEXT,0x28,0x0,&rs_tedinfo[0],2,1,21,1},
  50. };
  51.  
  52. OBJECT ABOUT[] = {
  53. /*0*/    {-1,1,4,G_BOX,0x400,0x10,(void *)0x21181,768,2560,21,8},
  54. /*1*/    {2,-1,-1,G_TEXT,0x0,0x0,&rs_tedinfo[1],0,1,21,1},
  55. /*2*/    {3,-1,-1,G_TEXT,0x0,0x0,&rs_tedinfo[2],0,3,21,1},
  56. /*3*/    {4,-1,-1,G_TEXT,0x0,0x0,&rs_tedinfo[3],0,4,21,1},
  57. /*4*/    {0,-1,-1,G_BUTTON,0x627,0x0,"OK", 6,6,9,1},
  58. };
  59.  
  60. OBJECT WIDTHMENU[] = {
  61. /*0*/    {-1,1,6,G_BOX,0x0,0x0,(void *)0xff1100,1,1,13,6},
  62. /*1*/    {2,-1,-1,G_STRING,0x0,0x0,"  50%", 0,0,13,1},
  63. /*2*/    {3,-1,-1,G_STRING,0x0,0x0,"  75%", 0,1,13,1},
  64. /*3*/    {4,-1,-1,G_STRING,0x0,0x0,"  100%", 0,2,13,1},
  65. /*4*/    {5,-1,-1,G_STRING,0x0,0x0,"  150%", 0,3,13,1},
  66. /*5*/    {6,-1,-1,G_STRING,0x0,0x0,"  200%", 0,4,13,1},
  67. /*6*/    {0,-1,-1,G_STRING,0x20,0x0,"  Other ...  ", 0,5,13,1},
  68. };
  69.  
  70. OBJECT OTHERWIDTH[] = {
  71. /*0*/    {-1,1,3,G_BOX,0x400,0x10,(void *)0x21181,4,1,25,5},
  72. /*1*/    {2,-1,-1,G_BUTTON,0x607,0x0,"OK", 3,3,8,1},
  73. /*2*/    {3,-1,-1,G_BUTTON,0x605,0x0,"Cancel", 14,3,8,1},
  74. /*3*/    {0,-1,-1,G_FTEXT,0x28,0x0,&rs_tedinfo[4],2,1,21,1},
  75. };
  76.  
  77.  
  78.  
  79. static void fix_tree(OBJECT *s,int max)
  80. {
  81.     int i;
  82.  
  83.     for(i=0; i<=max; i++)
  84.         rsrc_obfix(s,i);
  85. }
  86.  
  87. void rsrc_init(void)
  88. {
  89.     fix_tree(MAINMENU,21);
  90.     fix_tree(SIZEMENU,5);
  91.     fix_tree(OTHERSIZE,3);
  92.     fix_tree(ABOUT,4);
  93.     fix_tree(WIDTHMENU,6);
  94.     fix_tree(OTHERWIDTH,3);
  95. }
  96.