home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / shell / d_poff / src / gui.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-25  |  2.8 KB  |  135 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    dialogID ;
  9. extern int    MJ_BASEOBJ ;
  10. extern int    messageID[4] ;
  11. extern int    poffIconID[2] ;
  12. extern int    poffFunc() ;
  13.  
  14. #define ALIGN    4
  15. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  16.  
  17. /*    MMI_init 用データ    */
  18.  
  19. /*    ヘッダ    */
  20.  
  21. MMIINIT    initDataGUI = { "MmiInit",   7, 0 } ;
  22.  
  23. /* dialogID */
  24.  
  25. static MMIPACKET d001 = {    &dialogID,
  26.                             &MJ_BASEOBJ,
  27.                             &MJ_DIALOGL40,
  28.                             OFFSET(DIALOGL40),
  29.                             MS_NONE
  30.                         } ;
  31. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  32.                              291, 206, 349, 274, 8, 1,15,
  33.                             MS_UFRAMEL40 | MS_FRAMEL40,
  34.                             NULL,   0,   0
  35.                         } ;
  36.  
  37. /* messageID[0] */
  38.  
  39. static MMIPACKET d002 = {    &messageID[0],
  40.                             &dialogID,
  41.                             &MJ_MSGL40,
  42.                             OFFSET(MSGL40),
  43.                             MS_NONE
  44.                         } ;
  45. static MSGL40    d002d =     {    MS_DSPONLYL40,
  46.                              293, 207, 298, 212, 8, 5, 8,
  47.                             MS_NONEL40,
  48.                             "Dangerous",
  49.                                1,  12,  12,
  50.                             MS_OUTLINEL40,
  51.                               -2,   0
  52.                         } ;
  53.  
  54. /* messageID[1] */
  55.  
  56. static MMIPACKET d003 = {    &messageID[1],
  57.                             &dialogID,
  58.                             &MJ_MSGL40,
  59.                             OFFSET(MSGL40),
  60.                             MS_NONE
  61.                         } ;
  62. static MSGL40    d003d =     {    MS_DSPONLYL40,
  63.                              294, 208, 299, 213, 8,15,14,
  64.                             MS_NONEL40,
  65.                             "Dangerous",
  66.                                1,  12,  12,
  67.                             MS_NONEL40,
  68.                                0,   0
  69.                         } ;
  70.  
  71. /* poffIconID[0] */
  72.  
  73. static MMIPACKET d004 = {    &poffIconID[0],
  74.                             &dialogID,
  75.                             &MJ_ICONL40,
  76.                             OFFSET(ICONL40),
  77.                             MS_NONE
  78.                         } ;
  79. static ICONL40    d004d =     {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  80.                              301, 235, 338, 272, 8, 8, 8,
  81.                             MS_PANELL40 | MS_BFRAMEL40 | MS_FRAMEL40,
  82.                             poffFunc,
  83.                             0x0000, 512
  84.                         } ;
  85.  
  86. /* poffIconID[1] */
  87.  
  88. static MMIPACKET d005 = {    &poffIconID[1],
  89.                             &dialogID,
  90.                             &MJ_ICONL40,
  91.                             OFFSET(ICONL40),
  92.                             MS_NONE
  93.                         } ;
  94. static ICONL40    d005d =     {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
  95.                              306, 241, 332, 267, 8, 8, 8,
  96.                             MS_NONEL40,
  97.                             0,
  98.                             0x0000, 513
  99.                         } ;
  100.  
  101. /* messageID[2] */
  102.  
  103. static MMIPACKET d006 = {    &messageID[2],
  104.                             &dialogID,
  105.                             &MJ_MSGL40,
  106.                             OFFSET(MSGL40),
  107.                             MS_NONE
  108.                         } ;
  109. static MSGL40    d006d =     {    MS_DSPONLYL40,
  110.                              308, 220, 313, 225, 8, 5, 8,
  111.                             MS_NONEL40,
  112.                             "poff",
  113.                                1,  12,  12,
  114.                             MS_OUTLINEL40,
  115.                               -2,   0
  116.                         } ;
  117.  
  118. /* messageID[3] */
  119.  
  120. static MMIPACKET d007 = {    &messageID[3],
  121.                             &dialogID,
  122.                             &MJ_MSGL40,
  123.                             0,
  124.                             MS_NONE
  125.                         } ;
  126. static MSGL40    d007d =     {    MS_DSPONLYL40,
  127.                              309, 221, 314, 226, 8,15,14,
  128.                             MS_NONEL40,
  129.                             "poff",
  130.                                1,  12,  12,
  131.                             MS_NONEL40,
  132.                                0,   0
  133.                         } ;
  134.  
  135.