home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 January / Chip_1997-01_cd.bin / ms95 / disk22 / dir10 / f015650.re_ / f015650.re
Text File  |  1996-04-02  |  4KB  |  108 lines

  1. /*----------------------------------------------------------------------+
  2. |                                    |
  3. |  Copyright (1993-95) 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/listfile/listfile.r_v  $
  18. |   $Workfile:   listfile.r  $
  19. |   $Revision:   5.3  $
  20. |       $Date:   29 Jun 1995 17:42:00  $
  21. |                                    |
  22. +----------------------------------------------------------------------*/
  23. /*----------------------------------------------------------------------+
  24. |                                    |
  25. |   Function -                                |
  26. |                                    |
  27. |    List File Example dialog box resource                |
  28. |                                    |
  29. +----------------------------------------------------------------------*/
  30. /*----------------------------------------------------------------------+
  31. |                                    |
  32. |   Include Files                               |
  33. |                                    |
  34. +----------------------------------------------------------------------*/
  35. #include <dlogbox.h>
  36. #include <dlogids.h>
  37.  
  38. #include "listfids.h"
  39. #include "lfiletxt.h"
  40.  
  41. /*----------------------------------------------------------------------+
  42. |                                    |
  43. |   Local Defines                               |
  44. |                                    |
  45. +----------------------------------------------------------------------*/
  46. /*----------------------------------------------------------------------+
  47. |                                    |
  48. |   Text File Display Dialog Box                    |
  49. |                                    |
  50. +----------------------------------------------------------------------*/
  51.  
  52. #define DW (96*XC) /* 86 characters wide */
  53. #define DH (29*YC) /* 29 lines long      */
  54.  
  55. #define X0    (XC/2)            /* List Box X */
  56. #define Y0     (YC/4)            /* Menu Bar Y */
  57. #define Y1   (Y0+(1.25*YC))        /* List Box Y */
  58.  
  59. DialogBoxRsc DIALOGID_Listfile = 
  60.     {
  61.     DIALOGATTR_DEFAULT,
  62.     DW, DH, 
  63.     NOHELP, MHELP, NOHOOK, NOPARENTID, 
  64.     TXT_MDLExampleFileDisplayer,
  65. {
  66.     {{ 0, Y0, 0, 0}, MenuBar,    MENUBARID_Listfile,  ON, 0, "", ""}, 
  67.     {{ 0, Y1, 0, 0}, ListBox,    LISTBOXID_FileContents, ON, 0, "", ""}, 
  68. }
  69.     };
  70.     
  71. /*----------------------------------------------------------------------+
  72. |                                    |
  73. |     Menubar Item                            |
  74. |                                    |
  75. +----------------------------------------------------------------------*/
  76. DItem_MenuBarRsc MENUBARID_Listfile =
  77.     {
  78.     NOHOOK, NOARG,
  79.     {
  80.     {PulldownMenu, PULLDOWNMENUID_ListfileFileOpen},
  81.     }
  82.     };
  83.  
  84. DItem_PulldownMenuRsc PULLDOWNMENUID_ListfileFileOpen =
  85.     {
  86.     NOHELP, OHELPTASKIDCMD, NOHOOK, ON | ALIGN_LEFT, TXT_File,
  87. {       
  88. {TXT_Open,  NOACCEL, ON, NOMARK, 0, NOSUBMENU, NOHELP, OHELPTASKIDCMD, 
  89.         HOOKITEMID_MenuItem_FileOpen, NOARG, NOCMD, OTASKID, ""},
  90. }
  91.     };                
  92.  
  93. /*----------------------------------------------------------------------+
  94. |                                    |
  95. |  ListBox Resources                            |
  96. |                                    |
  97. +----------------------------------------------------------------------*/
  98. DItem_ListBoxRsc LISTBOXID_FileContents = 
  99.     {
  100.     NOHELP, MHELP, HOOKITEMID_ListBox_FileContents, NOARG, 
  101.     LISTATTR_NEVERSELECTION | LISTATTR_NOKEYSEARCH | LISTATTR_FIXEDFONT,
  102.     24, 0, "",
  103.     {
  104.     {90*XC, 80, 0, ""},
  105.     }
  106.     };
  107.  
  108.