home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 January / Chip_1997-01_cd.bin / ms95 / disk22 / dir03 / f013750.re_ / f013750.re
Text File  |  1996-04-02  |  9KB  |  259 lines

  1. /*----------------------------------------------------------------------+
  2. |                                    |
  3. |  Copyright (1993-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/clibmgr/clibmgr.r_v  $
  18. |   $Workfile:   clibmgr.r  $
  19. |   $Revision:   1.3  $
  20. |       $Date:   16 Jun 1995 15:24:00  $
  21. |                                    |
  22. +----------------------------------------------------------------------*/
  23. /*----------------------------------------------------------------------+
  24. |                                    |
  25. |   Function -                                |
  26. |                                    |
  27. |    ClibMgr Dialog Example Resources                |
  28. |                                    |
  29. +----------------------------------------------------------------------*/
  30. /*----------------------------------------------------------------------+
  31. |                                    |
  32. |   Include Files                               |
  33. |                                    |
  34. +----------------------------------------------------------------------*/
  35. #include <dlogbox.h>    /* dlog box manager resource constants & structs */
  36. #include <dlogids.h>    /* MicroStation resource IDs */
  37.  
  38. #include "clibmgr.h"    /* clibMgr dialog box example constants & structs */
  39. #include "clibmtxt.h"    /* Static text definitions for dialog resources */
  40.  
  41. /*----------------------------------------------------------------------+
  42. |                                    |
  43. |   ClibMgr Dialog Box                            |
  44. |                                    |
  45. +----------------------------------------------------------------------*/
  46. #define X1 (1*XC)        /* label and list box x position */
  47. #define X2 (3*XC)        /* label and list box x position */
  48. #define X3 (18*XC)        /* "Workstation" x position */
  49. #define X4 (36*XC)        /* "Workstation" x position */
  50. #define X5 (42*XC+XC/2)        /* "Workstation" x position */
  51. #define X6 (49*XC)        /* "Workstation" x position */
  52.  
  53. #define X7 (26*XC)        /* "Workstation" x position */
  54. #define X8 (40*XC)
  55.  
  56. #define Y1  (1*YC + YC/2)
  57. #define Y2  (10*YC - YC/4)
  58. #define Y3  (9*YC + YC/3)
  59. #define Y4  (12*YC - YC/4)
  60. #define Y5  (11*YC + YC/2)
  61. #define Y6  (10*YC)
  62. #define OB  (8*XC)
  63.  
  64. #define  GENHGHT    7*YC + YC/2
  65. #define  GENWIDTH    18*XC
  66. #define  BTN1        5*XC + XC/2
  67. #define  BTN2        8*XC
  68.  
  69. DialogBoxRsc DIALOGID_ClibMgr =
  70.     {
  71.     DIALOGATTR_DEFAULT | DIALOGATTR_SINKABLE,
  72.     55*XC, 13*YC+YC/2,
  73.     NOHELP, MHELP, HOOKDIALOGID_ClibMgr, NOPARENTID,
  74.     TXT_CellLibraryManager,
  75. {
  76. {{X1, Y1, 0, 0},        ListBox,  LISTBOXID_ClibMgr, ON, 0,"", ""},
  77. {{X1, Y2, 9*XC, 0},        Label, 0, ON, ALIGN_LEFT, TXT_View, ""},
  78. {{OB, Y2, 0, 0},        OptionButton, OPTIONBUTTONID_ClibMgr_View,
  79.                     ON, 0, "", ""},
  80. {{X1, Y4, 9*XC, 0},        Label, 0, ON, ALIGN_LEFT, TXT_Library, ""},
  81. {{OB, Y4, 0, 0},        OptionButton, OPTIONBUTTONID_ClibMgr_Library,
  82.                     ON, 0, "", ""},
  83. {{X4, Y1, GENWIDTH, GENHGHT},    Generic, GENERICID_ClibMgr, ON, 0, "", ""},
  84.  
  85. {{X4, Y3, BTN1, 0},        PushButton, PUSHBUTTONID_ClibMgrRxM, ON,
  86.                     0, "", ""},
  87. {{X4, Y5, BTN1, 0},        PushButton, PUSHBUTTONID_ClibMgrRxP, ON,
  88.                     0, "", ""},
  89.  
  90. {{X5, Y3, BTN1, 0},        PushButton, PUSHBUTTONID_ClibMgrRyM, ON,
  91.                     0, "", ""},
  92. {{X5, Y5, BTN1, 0},        PushButton, PUSHBUTTONID_ClibMgrRyP, ON,
  93.                     0, "", ""},
  94.  
  95. {{X6, Y3, BTN1, 0},        PushButton, PUSHBUTTONID_ClibMgrRzM, ON,0, "", ""},
  96. {{X6, Y5, BTN1, 0},        PushButton, PUSHBUTTONID_ClibMgrRzP, ON,0, "", ""},
  97.  
  98. {{X7, Y3, BTN2, 0},        PushButton, PUSHBUTTONID_ClibMgr_ZeroAngles, ON,
  99.                     0, "",""},
  100. {{X7, Y5, BTN2, 0},        PushButton, PUSHBUTTONID_ClibMgr_Select, ON,
  101.                     0, "", ""},
  102.  
  103. {{X8, YC/3, 0, 0},        ToggleButton, TOGGLEID_ClibMgr_CellShared, ON,
  104.                     0, "", ""},
  105. }
  106.     };
  107.  
  108. #undef X1        /* undef symbols so they can be reused */
  109. #undef X2
  110. #undef X3
  111. #undef X4
  112. #undef X5
  113. #undef Y1
  114. #undef Y2
  115. #undef Y3
  116. #undef GENHGHT
  117. #undef GENWIDTH
  118. #undef BTN_WIDTH
  119.  
  120. /*----------------------------------------------------------------------+
  121. |                                    |
  122. |   Item Resource Specifications                    |
  123. |                                    |
  124. +----------------------------------------------------------------------*/
  125. /*----------------------------------------------------------------------+
  126. |                                    |
  127. |   Cell Library Manager Text Items                     |
  128. |                                    |
  129. +----------------------------------------------------------------------*/
  130. /*----------------------------------------------------------------------+
  131. |                                    |
  132. |   List Box Item Resource                        |
  133. |                                    |
  134. +----------------------------------------------------------------------*/
  135. DItem_ListBoxRsc LISTBOXID_ClibMgr =
  136.     {
  137.     NOHELP, LHELPCMD, HOOKITEMID_ClibMgr_ListBox, NOARG,
  138.     0, 6, 0, "",
  139.     {
  140.     {7*XC,   6,  ALIGN_LEFT, TXT_Name},
  141.     {23*XC, 22,  ALIGN_LEFT, TXT_Description},
  142.     }
  143.     };
  144.  
  145. /*----------------------------------------------------------------------+
  146. |                                    |
  147. |   Option Button Item Resource                        |
  148. |                                    |
  149. +----------------------------------------------------------------------*/
  150. DItem_OptionButtonRsc  OPTIONBUTTONID_ClibMgr_Library =
  151.     {
  152.     NOSYNONYM, NOHELP, LHELPCMD, HOOKITEMID_ClibMgr_Library, NOARG,
  153.     "",
  154.     "clibMgrGlobals.currentLibrary",
  155.     {
  156.     {NOTYPE, NOICON, NOCMD, LCMD, 0, NOMASK, ON, TXT_Workstation},
  157.     {NOTYPE, NOICON, NOCMD, LCMD, 1, NOMASK, ON, TXT_Computer},
  158.     {NOTYPE, NOICON, NOCMD, LCMD, 2, NOMASK, ON, TXT_Chair},
  159.     }
  160.     };
  161.  
  162. DItem_OptionButtonRsc  OPTIONBUTTONID_ClibMgr_View =
  163.     {
  164.     NOSYNONYM, NOHELP, LHELPCMD, HOOKITEMID_ClibMgr_View, NOARG,
  165.     "",
  166.     "clibMgrGlobals.currentView",
  167.     {
  168.     {NOTYPE, NOICON, NOCMD, LCMD, 1, NOMASK, ON, TXT_Top},
  169.     {NOTYPE, NOICON, NOCMD, LCMD, 2, NOMASK, ON, TXT_Bottom},
  170.     {NOTYPE, NOICON, NOCMD, LCMD, 3, NOMASK, ON, TXT_Left},
  171.     {NOTYPE, NOICON, NOCMD, LCMD, 4, NOMASK, ON, TXT_Right},
  172.     {NOTYPE, NOICON, NOCMD, LCMD, 5, NOMASK, ON, TXT_Front},
  173.     {NOTYPE, NOICON, NOCMD, LCMD, 6, NOMASK, ON, TXT_Back},
  174.     {NOTYPE, NOICON, NOCMD, LCMD, 7, NOMASK, ON, TXT_Iso},
  175.     }
  176.     };
  177.  
  178. DItem_PushButtonRsc PUSHBUTTONID_ClibMgrRxM =
  179.     {
  180.     NOT_DEFAULT_BUTTON, NOHELP, MHELP,
  181.     HOOKITEMID_ClibMgr_RotateCell, 0, NOCMD, LCMD, "",
  182.     TXT_RxMinus
  183.     };
  184.  
  185. DItem_PushButtonRsc PUSHBUTTONID_ClibMgrRxP =
  186.     {
  187.     NOT_DEFAULT_BUTTON, NOHELP, MHELP,
  188.     HOOKITEMID_ClibMgr_RotateCell, 0, NOCMD, LCMD, "",
  189.     TXT_RxPlus
  190.     };
  191.  
  192. DItem_PushButtonRsc PUSHBUTTONID_ClibMgrRyM =
  193.     {
  194.     NOT_DEFAULT_BUTTON, NOHELP, MHELP,
  195.     HOOKITEMID_ClibMgr_RotateCell, 0, NOCMD, LCMD, "",
  196.     TXT_RyMinus
  197.     };
  198. DItem_PushButtonRsc PUSHBUTTONID_ClibMgrRyP =
  199.     {
  200.     NOT_DEFAULT_BUTTON, NOHELP, MHELP,
  201.     HOOKITEMID_ClibMgr_RotateCell, 0, NOCMD, LCMD, "",
  202.     TXT_RyPlus
  203.     };
  204.  
  205. DItem_PushButtonRsc PUSHBUTTONID_ClibMgrRzM =
  206.     {
  207.     NOT_DEFAULT_BUTTON, NOHELP, MHELP,
  208.     HOOKITEMID_ClibMgr_RotateCell, 0, NOCMD, LCMD, "",
  209.     TXT_RzMinus
  210.     };
  211. DItem_PushButtonRsc PUSHBUTTONID_ClibMgrRzP =
  212.     {
  213.     NOT_DEFAULT_BUTTON, NOHELP, MHELP,
  214.     HOOKITEMID_ClibMgr_RotateCell, 0, NOCMD, LCMD, "",
  215.     TXT_RzPlus
  216.     };
  217.  
  218.  
  219. DItem_PushButtonRsc PUSHBUTTONID_ClibMgr_ZeroAngles =
  220.     {
  221.     NOT_DEFAULT_BUTTON, NOHELP, MHELP,
  222.     HOOKITEMID_ClibMgr_ZeroAngles, 0, NOCMD, LCMD, "",
  223.     TXT_Zero
  224.     };
  225.  
  226. DItem_PushButtonRsc PUSHBUTTONID_ClibMgr_Select =
  227.     {
  228.     NOT_DEFAULT_BUTTON, NOHELP, MHELP,
  229.     HOOKITEMID_ClibMgr_Select, 0, NOCMD, LCMD, "",
  230.     TXT_Select
  231.     };
  232.  
  233.  
  234. /*----------------------------------------------------------------------+
  235. |                                    |
  236. |   ToggleButtons                            |
  237. |                                    |
  238. +----------------------------------------------------------------------*/
  239. DItem_ToggleButtonRsc TOGGLEID_ClibMgr_CellShared =
  240.     {
  241.     NOCMD, LCMD, NOSYNONYM, NOHELP, MHELP,
  242.     HOOKITEMID_ClibMgr_SharedCells, NOARG, NOMASK, NOINVERT,
  243.     TXT_Shared,
  244.     "tcb->ext_locks.sharedCells"
  245.     };
  246.  
  247. /*----------------------------------------------------------------------+
  248. |                                                                       |
  249. |      Generic Items                                                       |
  250. |                                                                       |
  251. +----------------------------------------------------------------------*/
  252. DItem_GenericRsc GENERICID_ClibMgr =
  253.     {
  254.     NOHELP, MHELP,
  255.     HOOKITEMID_ClibMgr_Generic, NOARG
  256.     };
  257.  
  258.  
  259.