home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 January / Chip_1997-01_cd.bin / ms95 / disk21 / dir04 / f015110.re_ / f015110.re
Text File  |  1996-04-02  |  18KB  |  509 lines

  1. /*----------------------------------------------------------------------+
  2. |                                    |
  3. |  Copyright (1995) Bentley Systems, Inc., All rights reserved.        |
  4. |                                    |
  5. |  "MicroStation" is a registered trademark and "MDL" and "MicroCSL"    |
  6. |  are trademarks of Bentley Systems, Inc.                    |
  7. |                                    |
  8. |  Limited permission is hereby granted to reproduce and modify this    |
  9. |  copyrighted material provided that the resulting code is used only     |
  10. |  in conjunction with Bentley Systems products under the terms of the    |
  11. |  license agreement provided therein, and that this notice is retained    |
  12. |  in its entirety in any such reproduction or modification.        |
  13. |                                    |
  14. +----------------------------------------------------------------------*/
  15. /*----------------------------------------------------------------------+
  16. |                                    |
  17. |    $Logfile:   J:/mdl/examples/iconedit/iconedit.r_v  $
  18. |   $Workfile:   iconedit.r  $
  19. |   $Revision:   6.0  $
  20. |       $Date:   29 Jun 1995 10:04:44  $
  21. |                                    |
  22. +----------------------------------------------------------------------*/
  23. /*----------------------------------------------------------------------+
  24. |                                    |
  25. |   Function -                                |
  26. |                                    |
  27. |       Icon Editor Dialog Resources                    |
  28. |                                    |
  29. +----------------------------------------------------------------------*/
  30. /*----------------------------------------------------------------------+
  31. |                                    |
  32. |   Include Files                               |
  33. |                                    |
  34. +----------------------------------------------------------------------*/
  35. #include <rscdefs.h>
  36. #include <cmdclass.h>
  37. #include <dlogbox.h>
  38. #include <dlogids.h>
  39. #include <keys.h>
  40.  
  41. #include "iconedit.h"
  42. #include "icontext.h"
  43. #include "iconcmd.h"
  44.  
  45. /*----------------------------------------------------------------------+
  46. |                                    |
  47. |   Raster Icon Editor Dialog Box                    |
  48. |                                    |
  49. +----------------------------------------------------------------------*/
  50. #undef        XC
  51. #define        XC        (DCOORD_RESOLUTION/2) * ASPECT_ICON
  52.  
  53. DialogBoxRsc DIALOGID_Icon =
  54.     {
  55.     DIALOGATTR_DEFAULT | DIALOGATTR_SINKABLE,
  56.     45*XC, 45*YC+2,
  57.     NOHELP, MHELP, HOOKDIALOGID_Icon, NOPARENTID,
  58.     TXT_RasterIconEditor,
  59. {
  60. {{10*XC+3, 1*YC+9, 40*XC, 0}, Label, LABELID_IconSize, ON, 0, TXT_IconSize, ""},
  61. {{3*XC+2, 3*YC+3, 4*XC+1, 2*YC+1}, Generic,   GENERICID_IconSmall, ON, 0,"", ""},
  62. {{14*XC+3, 2*YC+1, 19*XC+2, 9*YC+8}, Generic,   GENERICID_IconLarge, ON, 0,"", ""},
  63. {{14*XC+3, 14*YC+1, 15*XC, 0}, Label,     LABELID_Position,    ON,
  64.                         ALIGN_LEFT, TXT_Position, ""},
  65. {{1*XC+4, 8*YC+4, 11*XC, 0}, OptionButton, OPTIONBUTTONID_Tool, ON, 0, "", ""},
  66. {{1*XC+4, 10*YC, 11*XC, 0}, OptionButton, OPTIONBUTTONID_Mode, ON,0,"",""},
  67. {{1*XC+4, 11*YC+8, 11*XC, 0}, OptionButton, OPTIONBUTTONID_Size, ON,0,"",""},
  68. {{0, 0, 0, 0},               MenuBar,         MENUBARID_Icon, ON, 0, "", ""},
  69. {{14*XC+3, 15*YC+3, 10*XC, 0}, Text,         TEXTID_IconName, ON, 0, "", ""},
  70. {{14*XC+3, 25*YC+3, 5*XC, 0}, Text,         TEXTID_RscId, ON, 0, "", ""},
  71. {{17*XC+2, 12*YC, 2*XC+5, 1*YC+5}, Generic, GENERICID_ShiftLeft, ON, 0, "", ""},
  72. {{20*XC+5, 12*YC, 2*XC+5, 1*YC+5}, Generic, GENERICID_ShiftUp, ON, 0, "", ""},
  73. {{24*XC+2, 12*YC, 2*XC+5, 1*YC+5}, Generic, GENERICID_ShiftDown, ON, 0, "", ""},
  74. {{27*XC+5, 12*YC, 2*XC+5, 1*YC+5}, Generic, GENERICID_ShiftRight, ON, 0, "", ""},
  75. }
  76.     };
  77.  
  78. /*----------------------------------------------------------------------+
  79. |                                    |
  80. |   Open Icon Resource Dialog Box                    |
  81. |                                    |
  82. +----------------------------------------------------------------------*/
  83. #undef        XC
  84. #define        XC        (DCOORD_RESOLUTION/2) * ASPECT_OPENRESOURCE
  85.  
  86. #define X1 2*XC
  87. #define X2 5*XC
  88. #define X3 25*XC
  89. #define    Y1 2*YC
  90. #define Y2 15*YC
  91.  
  92. DialogBoxRsc DIALOGID_OpenIconResource =
  93.     {
  94.     DIALOGATTR_MODAL,
  95.     50*XC, 18*YC,
  96.     NOHELP, MHELP, HOOKDIALOGID_OpenIconResource, NOPARENTID,
  97.     TXT_OpenIconResource,
  98. {
  99. {{XC, 2*YC, 0, 0},           ListBox,       LISTBOXID_RscNum, ON, 0, "", ""},
  100. {{5*XC, 15*YC,BUTTON_STDWIDTH,0},   PushButton, PUSHBUTTONID_OK, ON, 0, "", ""},
  101. {{37*XC,15*YC,BUTTON_STDWIDTH,0}, PushButton, PUSHBUTTONID_Cancel,    ON,0,"", ""},
  102. }
  103.     };
  104.  
  105. #undef  X1
  106. #undef  X2
  107. #undef  X3
  108. #undef  Y1
  109. #undef  Y2
  110. #undef  Y3
  111. #undef  Y4
  112.  
  113. /*----------------------------------------------------------------------+
  114. |                                    |
  115. |   User Size Dialog Box                        |
  116. |                                    |
  117. +----------------------------------------------------------------------*/
  118. #undef        XC
  119. #define        XC        (DCOORD_RESOLUTION/2) * ASPECT_USERSIZE
  120.  
  121. #define X1 12*XC
  122. #define    Y1 YC / 2
  123. #define    Y2 2*YC
  124. #define Y3 4*YC
  125.  
  126. DialogBoxRsc DIALOGID_UserSize =
  127.     {
  128.     DIALOGATTR_MODAL,
  129.     24*XC, 13*YC/2,
  130.     NOHELP, MHELP, NOHOOK, NOPARENTID,
  131.     TXT_UserSize,
  132. {
  133. /*00*/ {{X1, Y1, 4*XC, 0},           Text,        TEXTID_Width,
  134.                             ON, 0, "", ""},
  135. /*01*/ {{X1, Y2, 4*XC, 0},          Text,      TEXTID_Height,
  136.                             ON, 0, "", ""},
  137. /*02*/ {{3*XC,Y3,BUTTON_STDWIDTH,0}, PushButton, PUSHBUTTONID_OK,
  138.                             ON, 0, "", ""},
  139. /*03*/ {{14*XC,Y3,BUTTON_STDWIDTH,0}, PushButton, PUSHBUTTONID_Cancel,
  140.                                   ON,0,"", ""},
  141. }
  142.     };
  143.  
  144. #undef  X1
  145. #undef  Y1
  146. #undef  Y2
  147. #undef  Y3
  148.  
  149.  
  150. /*----------------------------------------------------------------------+
  151. |                                    |
  152. |   Item Instances                            |
  153. |                                    |
  154. +----------------------------------------------------------------------*/
  155. /*----------------------------------------------------------------------+
  156. |                                    |
  157. |   Generic Icon Resource                         |
  158. |                                    |
  159. +----------------------------------------------------------------------*/
  160. DItem_GenericRsc GENERICID_IconLarge =
  161.     {
  162.     NOHELP, MHELP, HOOKITEMID_Generic_IconLarge, NOARG
  163.     };
  164.  
  165. DItem_GenericRsc GENERICID_IconSmall =
  166.     {
  167.     NOHELP, MHELP, HOOKITEMID_Generic_IconSmall, NOARG
  168.     };
  169.  
  170. DItem_GenericRsc GENERICID_ShiftUp =
  171.     {
  172.     NOHELP, MHELP, HOOKITEMID_Generic_Shift, 0
  173.     };
  174.  
  175. DItem_GenericRsc GENERICID_ShiftDown =
  176.     {
  177.     NOHELP, MHELP, HOOKITEMID_Generic_Shift, 2
  178.     };
  179.  
  180. DItem_GenericRsc GENERICID_ShiftLeft =
  181.     {
  182.     NOHELP, MHELP, HOOKITEMID_Generic_Shift, 1
  183.     };
  184.  
  185. DItem_GenericRsc GENERICID_ShiftRight =
  186.     {
  187.     NOHELP, MHELP, HOOKITEMID_Generic_Shift, 3
  188.     };
  189.  
  190. /*----------------------------------------------------------------------+
  191. |                                    |
  192. |   Icon MenuBar                            |
  193. |                                    |
  194. +----------------------------------------------------------------------*/
  195. DItem_MenuBarRsc MENUBARID_Icon =
  196.     {
  197.     NOHOOK, NOARG,
  198.     {
  199.     {PulldownMenu, PULLDOWNMENUID_IconFile},
  200.     {PulldownMenu, PULLDOWNMENUID_IconEdit},
  201.     {PulldownMenu, PULLDOWNMENUID_Import},
  202.     }
  203.     };
  204.  
  205. /*----------------------------------------------------------------------+
  206. |                                    |
  207. |   Icon Menus                              |
  208. |                                    |
  209. +----------------------------------------------------------------------*/
  210. DItem_PulldownMenuRsc PULLDOWNMENUID_IconFile =
  211.     {
  212.     NOHELP, OHELPTASKIDCMD, NOHOOK, ON | ALIGN_LEFT, TXT_File,
  213. {
  214. {TXT_NewFile,        'N'|VBIT_CTRL,ON,NOMARK,0,NOSUBMENU,
  215.             NOHELP,OHELPTASKIDCMD,NOHOOK, MENUSEARCHID_NewFile,
  216.             CMD_ICONEDIT_NEWFILE, OTASKID, ""},
  217. {TXT_OpenFile,        'O'|VBIT_CTRL,ON,NOMARK,0,NOSUBMENU,
  218.             NOHELP,OHELPTASKIDCMD,NOHOOK, MENUSEARCHID_OpenFile,
  219.             CMD_ICONEDIT_OPENFILE, OTASKID, ""},
  220. {TXT_NewIcon,        NOACCEL,ON,NOMARK, 0, NOSUBMENU,
  221.             NOHELP, OHELPTASKIDCMD, NOHOOK, MENUSEARCHID_NewIcon,
  222.             CMD_ICONEDIT_NEWICON, OTASKID, ""},
  223. {TXT_OpenIcon,        'I'|VBIT_CTRL,OFF,NOMARK, 0, NOSUBMENU,
  224.             NOHELP, OHELPTASKIDCMD, NOHOOK, MENUSEARCHID_OpenIcon,
  225.             CMD_ICONEDIT_OPENICON, OTASKID, ""},
  226. {"-",            NOACCEL,OFF, NOMARK, 0, NOSUBMENU,
  227.             NOHELP, OHELPTASKIDCMD, NOHOOK, 0,
  228.             NOCMD, OTASKID, ""},
  229. {TXT_Save,        'S'|VBIT_CTRL,ON,NOMARK, 0, NOSUBMENU,
  230.             NOHELP, OHELPTASKIDCMD, NOHOOK, MENUSEARCHID_Save,
  231.             CMD_ICONEDIT_SAVE, OTASKID, ""},
  232. {TXT_SaveTo,        NOACCEL,ON,NOMARK, 0, NOSUBMENU,
  233.             NOHELP, OHELPTASKIDCMD, NOHOOK, MENUSEARCHID_SaveTo,
  234.             CMD_ICONEDIT_SAVETO, OTASKID, ""},
  235. {"-",            NOACCEL,OFF,NOMARK, 0, NOSUBMENU,
  236.             NOHELP, OHELPTASKIDCMD, NOHOOK, 0,
  237.             NOCMD, OTASKID, ""},
  238. {TXT_Quit,        NOACCEL, ON,NOMARK, 0, NOSUBMENU,
  239.             NOHELP, OHELPTASKIDCMD, NOHOOK, MENUSEARCHID_Quit,
  240.             CMD_ICONEDIT_QUIT, OTASKID, "1"}
  241. }
  242.     };
  243.  
  244. DItem_PulldownMenuRsc PULLDOWNMENUID_IconEdit =
  245.     {
  246.     NOHELP, OHELPTASKIDCMD, NOHOOK, ON | ALIGN_LEFT, TXT_Edit,
  247. {
  248. {TXT_Fill,        NOACCEL,ON,MARK_TOGGLE_OUT, 0, NOSUBMENU,
  249.             NOHELP, OHELPTASKIDCMD, NOHOOK, MENUSEARCHID_Fill,
  250.             CMD_ICONEDIT_FILL, OTASKID, ""},
  251. {"-",            NOACCEL,OFF, NOMARK, 0, NOSUBMENU,
  252.             NOHELP, OHELPTASKIDCMD, NOHOOK, 0,
  253.             NOCMD, OTASKID, ""},
  254. {TXT_Clear,        NOACCEL,ON,NOMARK, 0, NOSUBMENU,
  255.             NOHELP, OHELPTASKIDCMD, NOHOOK, MENUSEARCHID_Clear,
  256.             CMD_ICONEDIT_CLEAR, OTASKID, ""},
  257. {"-",            NOACCEL,OFF, NOMARK, 0, NOSUBMENU,
  258.             NOHELP, OHELPTASKIDCMD, NOHOOK, 0,
  259.             NOCMD, OTASKID, ""},
  260. {TXT_ShiftLeft,        NOACCEL,ON, NOMARK, 0, NOSUBMENU,
  261.             NOHELP, OHELPTASKIDCMD, NOHOOK, MENUSEARCHID_ShiftLeft,
  262.             CMD_ICONEDIT_SHIFT_LEFT, OTASKID, ""},
  263. {TXT_ShiftRight,        NOACCEL,ON, NOMARK, 0, NOSUBMENU,
  264.             NOHELP, OHELPTASKIDCMD, NOHOOK, MENUSEARCHID_ShiftRight,
  265.             CMD_ICONEDIT_SHIFT_RIGHT, OTASKID, ""},
  266. {TXT_ShiftUp,        NOACCEL,ON,NOMARK, 0, NOSUBMENU,
  267.             NOHELP, OHELPTASKIDCMD, NOHOOK, MENUSEARCHID_ShiftUp,
  268.             CMD_ICONEDIT_SHIFT_UP, OTASKID, ""},
  269. {TXT_ShiftDown,        NOACCEL,ON,NOMARK, 0, NOSUBMENU,
  270.             NOHELP, OHELPTASKIDCMD, NOHOOK, MENUSEARCHID_ShiftDown,
  271.             CMD_ICONEDIT_SHIFT_DOWN, OTASKID, "1"},
  272. }
  273.     };
  274.  
  275. /*----------------------------------------------------------------------+
  276. |                                    |
  277. |   Import Menus                              |
  278. |                                    |
  279. +----------------------------------------------------------------------*/
  280. DItem_PulldownMenuRsc PULLDOWNMENUID_Import =
  281.     {
  282.     NOHELP, OHELPTASKIDCMD, NOHOOK, ON | ALIGN_LEFT, TXT_Import,
  283. {
  284. {TXT_Graphics,        NOACCEL,ON,NOMARK,0,NOSUBMENU,
  285.             NOHELP,OHELPTASKIDCMD,NOHOOK, MENUSEARCHID_ImportGraphics,
  286.             CMD_ICONEDIT_IMPORT_GRAPHICS, OTASKID, ""},
  287. {TXT_Cell,        NOACCEL,ON,NOMARK,0,NOSUBMENU,
  288.             NOHELP,OHELPTASKIDCMD,NOHOOK, MENUSEARCHID_ImportCell,
  289.             CMD_ICONEDIT_IMPORT_CELL, OTASKID, ""},
  290. }
  291.     };
  292.  
  293.  
  294.  
  295.  
  296. /*----------------------------------------------------------------------+
  297. |                                    |
  298. |   Icon Option Button Items                        |
  299. |                                    |
  300. +----------------------------------------------------------------------*/
  301. DItem_OptionButtonRsc  OPTIONBUTTONID_Tool =
  302.     {
  303.     NOSYNONYM, NOHELP, MHELP, NOHOOK, NOARG,
  304.     "",
  305.     "iconEditP->tool",
  306.     {
  307.  {NOTYPE, NOICON, CMD_ICONEDIT_TOOL_LINE,  LCMD, 0, NOMASK, ON, TXT_Line},
  308.  {NOTYPE, NOICON, CMD_ICONEDIT_TOOL_BRUSH, LCMD, 1, NOMASK, ON, TXT_Brush},
  309.  {NOTYPE, NOICON, CMD_ICONEDIT_TOOL_RECTANGLE, LCMD, 2, NOMASK, ON, TXT_Rectangle},
  310.  {NOTYPE, NOICON, CMD_ICONEDIT_TOOL_CIRCLE, LCMD, 3, NOMASK, ON, TXT_Circle}
  311.     }
  312.     };
  313.  
  314. DItem_OptionButtonRsc  OPTIONBUTTONID_Mode =
  315.     {
  316.     NOSYNONYM, NOHELP, MHELP, NOHOOK, NOARG,
  317.     "",
  318.     "iconEditP->mode",
  319.     {
  320.     {NOTYPE, NOICON, NOCMD, LCMD, 0, NOMASK, ON, TXT_Toggle},
  321.     {NOTYPE, NOICON, NOCMD, LCMD, 1, NOMASK, ON, TXT_Set},
  322.     {NOTYPE, NOICON, NOCMD, LCMD, 2, NOMASK, ON, TXT_Clear}
  323.     }
  324.     };
  325.  
  326. DItem_OptionButtonRsc  OPTIONBUTTONID_Size =
  327.     {
  328.     NOSYNONYM, NOHELP, MHELP, HOOKITEMID_Option_Size, NOARG,
  329.     "",
  330.     "iconEditP->sizeIndex",
  331.     {
  332.     {NOTYPE, NOICON, NOCMD, LCMD, 0, NOMASK, ON, TXT_23x23},
  333.     {NOTYPE, NOICON, NOCMD, LCMD, 1, NOMASK, ON, TXT_31x31},
  334.     {NOTYPE, NOICON, NOCMD, LCMD, 2, NOMASK, ON, TXT_User}
  335.     }
  336.     };
  337.  
  338. /*----------------------------------------------------------------------+
  339. |                                    |
  340. |   Text Item Resources                             |
  341. |                                    |
  342. +----------------------------------------------------------------------*/
  343. DItem_TextRsc TEXTID_IconName =
  344.     {
  345.     NOCMD, LCMD, NOSYNONYM, NOHELP, MHELP, HOOKITEMID_TextItem, NOARG,
  346.     15, "%s", "%s", "", "", NOMASK, CONCAT,
  347.     TXT_IconName,
  348.     "iconEditP->iconName"
  349.     };
  350.  
  351. DItem_TextRsc TEXTID_RscId =
  352.     {
  353.     NOCMD, LCMD, NOSYNONYM, NOHELP, MHELP, HOOKITEMID_TextItem, NOARG,
  354.     15, "%ld", "%ld", "", "", NOMASK, CONCAT,
  355.     TXT_RscId,
  356.     "iconEditP->inRscId"
  357.     };
  358.  
  359. DItem_TextRsc TEXTID_Width =
  360.     {
  361.     NOCMD, LCMD, NOSYNONYM, NOHELP, MHELP, NOHOOK, NOARG,
  362.     4, "%d", "%d", "5", "100", NOMASK, NOCONCAT,
  363.     TXT_Width,
  364.     "iconEditP->width"
  365.     };
  366.  
  367. DItem_TextRsc TEXTID_Height =
  368.     {
  369.     NOCMD, LCMD, NOSYNONYM, NOHELP, MHELP, NOHOOK, NOARG,
  370.     4, "%d", "%d", "5", "100", NOMASK, NOCONCAT,
  371.     TXT_Height,
  372.     "iconEditP->height"
  373.     };
  374.  
  375. /*----------------------------------------------------------------------+
  376. |                                    |
  377. |   List Box Item Resources                         |
  378. |                                    |
  379. +----------------------------------------------------------------------*/
  380. DItem_ListBoxRsc LISTBOXID_RscNum =
  381.     {
  382.     NOHELP, MHELP, HOOKITEMID_List_RscNum, NOARG, 0, 10, 0, "",
  383.     {
  384.     {10*XC,  10, ALIGN_CENTER,  TXT_Resource },
  385.     { 7*XC,      4, ALIGN_CENTER,  TXT_Type },
  386.     {10*XC,      7, ALIGN_CENTER,  TXT_Size },
  387.     {17*XC,  16, ALIGN_LEFT,    TXT_IconName1 },
  388.     }
  389.     };
  390.  
  391. /*----------------------------------------------------------------------+
  392. |                                                                       |
  393. |   Icon Item Resource                                          |
  394. |                                                                       |
  395. +----------------------------------------------------------------------*/
  396. IconRsc ICONID_ShiftRight =
  397.     {
  398.     15,    15,    FORMAT_MONOBITMAP,    BLACK_INDEX, "ShiftRight",
  399.         {
  400.         0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xc0, 0x00,
  401.         0xe0, 0x00, 0xf0, 0x00, 0xf8, 0x00, 0xfc, 0x03,
  402.         0xe0, 0x0f, 0x00, 0x38, 0x00, 0xc0, 0x02, 0x00,
  403.         0x00, 0x00, 0x00, 0x00, 0x00,
  404.         }
  405.     };
  406.  
  407. IconRsc ICONID_ShiftLeft =
  408.     {
  409.     15,    15,    FORMAT_MONOBITMAP,    BLACK_INDEX, "ShiftLeft",
  410.         {
  411.         0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x01, 0x80,
  412.         0x0e, 0x00, 0x78, 0x03, 0xe0, 0x1f, 0x80, 0x0f,
  413.         0x80, 0x07, 0x80, 0x03, 0x80, 0x01, 0x80, 0x00,
  414.         0x80, 0x00, 0x00, 0x00, 0x00,
  415.         }
  416.     };
  417.  
  418. IconRsc ICONID_ShiftUp =
  419.     {
  420.     15,    15,    FORMAT_MONOBITMAP,    BLACK_INDEX, "ShiftUp",
  421.         {
  422.         0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00,
  423.         0x38, 0x00, 0x70, 0x01, 0xf0, 0x03, 0xe0, 0x0e,
  424.         0xe0, 0x18, 0xc0, 0x60, 0xc0, 0x80, 0x82, 0x00,
  425.         0x80, 0x00, 0x00, 0x00, 0x00
  426.         }
  427.     };
  428.  
  429. IconRsc ICONID_ShiftDown =
  430.     {
  431.     15,    15,    FORMAT_MONOBITMAP,    BLACK_INDEX, "ShiftDown",
  432.         {
  433.         0x00, 0x00, 0x00, 0x00, 0x80, 0x20, 0x80, 0x81,
  434.         0x83, 0x01, 0x8c, 0x03, 0xb8, 0x03, 0xe0, 0x07,
  435.         0xc0, 0x07, 0x00, 0x0e, 0x00, 0x08, 0x00, 0x10,
  436.         0x00, 0x00, 0x00, 0x00, 0x00, 
  437.         }
  438.     };
  439.  
  440.  
  441.  
  442. /*----------------------------------------------------------------------+
  443. |                                                                       |
  444. |      Select Cell Dialog                                               |
  445. |                                                                       |
  446. +----------------------------------------------------------------------*/
  447. #undef        XC
  448. #define        XC        (DCOORD_RESOLUTION/2) * ASPECT_SELECTCELL
  449.  
  450. DialogBoxRsc DIALOGID_SelectCell =
  451.     {
  452.     DIALOGATTR_DEFAULT | DIALOGATTR_MODAL,
  453.     42*XC+12*YC, 19*YC,
  454.     NOHELP, LHELP,
  455.     NOHOOK, NOPARENTID,
  456.     TXT_SelectCell,
  457. {
  458. {{ 10*XC,    1, 52*XC, 0},        Text,       TEXTID_SelectCell, ON, 0, "", ""},
  459. {{3*XC/2, 3*YC,     0, 0},     ListBox,  LISTBOXID_SelectCell, ON, 0, "", ""},
  460. {{ 39*XC, 3*YC, 12*YC, 12*YC}, Generic,    GENERICID_SelectCell, ON, 0, "", ""},
  461.  
  462. {{25*XC, 16.3*YC, 8*XC, 0}, PushButton,         PUSHBUTTONID_OK, ON, 0, "", ""},
  463. {{35*XC, 16.3*YC, 8*XC, 0}, PushButton,     PUSHBUTTONID_Cancel, ON, 0, "", ""},
  464. }
  465.     };
  466.  
  467. /*----------------------------------------------------------------------+
  468. |                                                                       |
  469. |      List Items                                                          |
  470. |                                                                       |
  471. +----------------------------------------------------------------------*/
  472. DItem_ListBoxRsc LISTBOXID_SelectCell =
  473.     {
  474.     NOHELP, LHELP,
  475.     HOOKID_ListBox_SelectCell, NOARG,
  476.     0, 10, 0, "",
  477.         {
  478.         {8*XC,   6, ALIGN_LEFT, TXT_CellName},
  479.         {23*XC, 22, ALIGN_LEFT, TXT_CellDescr},
  480.         }
  481.     };
  482.  
  483.  
  484. /*----------------------------------------------------------------------+
  485. |                                                                       |
  486. |      Generic Items                                                       |
  487. |                                                                       |
  488. +----------------------------------------------------------------------*/
  489. DItem_GenericRsc GENERICID_SelectCell =
  490.     {
  491.     NOHELP, MHELP, HOOKID_Generic_SelectCell, NOARG
  492.     };
  493.  
  494. /*----------------------------------------------------------------------+
  495. |                                                                       |
  496. |      Text Items                                                          |
  497. |                                                                       |
  498. +----------------------------------------------------------------------*/
  499. DItem_TextRsc TEXTID_SelectCell =
  500.     {
  501.     NOCMD, MCMD, NOSYNONYM,
  502.     NOHELP, MHELP,
  503.     NOHOOK, NOARG,
  504.     60, "%s", "%s", "", "", NOMASK,
  505.     TEXT_READONLY, "",
  506.     ""
  507.     };
  508.  
  509.