home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / MLEVIEW.ZIP / MLEVIEW.RC < prev    next >
Text File  |  1991-03-31  |  11KB  |  236 lines

  1. /*----------------------------------------*/
  2. /* MLEView.RC -- MLE View resource script */
  3. /*----------------------------------------*/
  4.  
  5.  
  6. #include <os2.h>
  7. #include "MLEView.h"
  8.  
  9. POINTER ID_RESOURCE mleview.ico
  10.  
  11. MENU ID_RESOURCE {
  12.    SUBMENU "~File",                   IDM_FILE {
  13.       MENUITEM "~Open...\tCtrl+o",    IDM_OPEN
  14.       MENUITEM SEPARATOR
  15.       MENUITEM "E~xit\tF3",           IDM_EXIT
  16.       }
  17.    SUBMENU "~Edit",                   IDM_EDIT {
  18.       MENUITEM "~Copy\tCtrl+Ins",     IDM_COPY,, MIA_DISABLED
  19.       MENUITEM SEPARATOR
  20.       MENUITEM "~Find\tCtrl+f",       IDM_FIND,, MIA_DISABLED
  21.       MENUITEM "Select ~All\tCtrl+a", IDM_SELECTALL,, MIA_DISABLED
  22.       }
  23.    SUBMENU "~Options",                IDM_OPTIONS {
  24.       MENUITEM "Set ~font...\tCtrl+f",IDM_SETFONT
  25.       MENUITEM "Set ~colors...\tCtrl+c", IDM_SETCOLORS
  26.       MENUITEM SEPARATOR
  27.       MENUITEM "~Word wrap\tCtrl+w",  IDM_WORDWRAP
  28.       }
  29.    SUBMENU "~Help",                   IDM_HELP {
  30.       MENUITEM "~Help for help...",   IDM_HELPFORHELP
  31.       MENUITEM "~Extended Help...",   SC_HELPEXTENDED,MIS_SYSCOMMAND
  32.       MENUITEM "~Keys help...",       SC_HELPKEYS    ,MIS_SYSCOMMAND
  33.       MENUITEM "Help ~index...",      SC_HELPINDEX   ,MIS_SYSCOMMAND
  34.       MENUITEM SEPARATOR
  35.       MENUITEM "~About MLEView",      IDM_ABOUT
  36.       }
  37.   }
  38.  
  39. ACCELTABLE ID_RESOURCE {
  40.    VK_F3,        IDM_EXIT,          VIRTUALKEY
  41.    "^A",         IDM_SELECTALL
  42.    "^C",         IDM_SETCOLORS
  43.    "^F",         IDM_FIND
  44.    "^F",         IDM_FIND
  45.    "^O",         IDM_OPEN
  46.    "^W",         IDM_WORDWRAP
  47.    }
  48.  
  49. DLGTEMPLATE IDD_ABOUT {
  50.    DIALOG "", IDD_ABOUT, 56, 24, 200, 88,, FCF_DLGBORDER {
  51.       CTEXT "MLEView"                              -1, 10, 64, 180,  8
  52.       ICON  ID_RESOURCE                            -1, 16, 56,   0,  0
  53.       CTEXT "Text File View"                       -1, 10, 40, 180,  8
  54.       CTEXT "(c)Copyright W. David Ashley, 1991"   -1, 10, 32, 180,  8
  55.       DEFPUSHBUTTON "Ok"                       DID_OK, 80,  8,  40, 16, WS_GROUP
  56.       }
  57.    }
  58.  
  59. /*--------------------------------------------------------------------*/
  60. /* Dialog Template Note:                                              */
  61. /*     The DLGTEMPLATE id must match the DIALOG id in order for the   */
  62. /*     Help system subtable definitions to work properly.             */
  63. /*--------------------------------------------------------------------*/
  64.  
  65. DLGTEMPLATE IDD_SETFONT LOADONCALL MOVEABLE DISCARDABLE {
  66.    DIALOG "Set Font", IDD_SETFONT, 78, 65, 237, 121, FS_NOBYTEALIGN |
  67.           FS_DLGBORDER | WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS,
  68.           FCF_SYSMENU | FCF_TITLEBAR {
  69.       CONTROL "Font", -1, 8, 100, 20, 8, WC_STATIC,
  70.               SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
  71.       CONTROL "", IDD_FONT_LB, 5, 58, 116, 46, WC_LISTBOX,
  72.               WS_TABSTOP | WS_VISIBLE
  73.       CONTROL "Size", -1, 126, 100, 20, 8, WC_STATIC,
  74.               SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
  75.       CONTROL "", IDD_SIZE_LB, 126, 58, 31, 46, WC_LISTBOX,
  76.               WS_TABSTOP | WS_VISIBLE
  77.       CONTROL "Typestyle", -1, 161, 58, 70, 55, WC_STATIC,
  78.               SS_GROUPBOX | WS_GROUP | WS_VISIBLE
  79.       CONTROL "~Bold", IDD_BOLD_CB, 166, 93, 61, 10, WC_BUTTON,
  80.               BS_AUTOCHECKBOX | WS_TABSTOP | WS_VISIBLE
  81.       CONTROL "~Italic", IDD_ITALIC_CB, 166, 83, 61, 10, WC_BUTTON,
  82.               BS_AUTOCHECKBOX | WS_TABSTOP | WS_VISIBLE
  83.       CONTROL "~Underscore", IDD_UNDERS_CB, 166, 73, 61, 10, WC_BUTTON,
  84.               BS_AUTOCHECKBOX | WS_TABSTOP | WS_VISIBLE
  85.       CONTROL "Strike~out", IDD_STRIKE_CB, 166, 63, 60, 10, WC_BUTTON,
  86.               BS_AUTOCHECKBOX | WS_TABSTOP | WS_VISIBLE
  87.       CONTROL "Font Sample", IDW_SAMPLETEXT, 5, 23, 227, 32, WC_STATIC,
  88.               SS_GROUPBOX | WS_VISIBLE
  89.       CONTROL "~Set", DID_OK, 5, 5, 50, 13, WC_BUTTON,
  90.               BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
  91.       CONTROL "~Apply", IDD_APPLY_BT, 65, 5, 50, 13, WC_BUTTON,
  92.               BS_PUSHBUTTON | BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
  93.       CONTROL "Cancel", DID_CANCEL, 123, 5, 51, 13, WC_BUTTON,
  94.               BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
  95.       CONTROL "Help", -1, 183, 5, 50, 13, WC_BUTTON,
  96.               BS_PUSHBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE |
  97.               WS_TABSTOP | BS_HELP
  98.       }
  99.    }
  100.  
  101. DLGTEMPLATE IDD_SETCOLORS LOADONCALL MOVEABLE DISCARDABLE {
  102.    DIALOG "Set Colors", IDD_SETCOLORS, 78, 65, 237, 121, FS_NOBYTEALIGN |
  103.           FS_DLGBORDER | WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS,
  104.           FCF_SYSMENU | FCF_TITLEBAR {
  105.       CONTROL "Foreground", -1, 8, 100, 60, 8, WC_STATIC,
  106.               SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
  107.       CONTROL "", IDD_FORG_LB, 5, 58, 106, 46, WC_LISTBOX,
  108.               WS_TABSTOP | WS_VISIBLE
  109.       CONTROL "Background", -1, 126, 100, 60, 8, WC_STATIC,
  110.               SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
  111.       CONTROL "", IDD_BAKG_LB, 125, 58, 106, 46, WC_LISTBOX,
  112.               WS_TABSTOP | WS_VISIBLE
  113.       CONTROL "Color Sample", IDW_COLORTEXT, 5, 23, 227, 32, WC_STATIC,
  114.               SS_GROUPBOX | WS_VISIBLE
  115.       CONTROL "~Set", DID_OK, 5, 5, 50, 13, WC_BUTTON,
  116.               BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
  117.       CONTROL "~Apply", IDD_APPLYC_BT, 65, 5, 50, 13, WC_BUTTON,
  118.               BS_PUSHBUTTON | BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
  119.       CONTROL "Cancel", DID_CANCEL, 123, 5, 51, 13, WC_BUTTON,
  120.               BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
  121.       CONTROL "Help", -1, 183, 5, 50, 13, WC_BUTTON,
  122.               BS_PUSHBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE |
  123.               WS_TABSTOP | BS_HELP
  124.       }
  125.    }
  126.  
  127. DLGTEMPLATE IDD_FIND LOADONCALL MOVEABLE DISCARDABLE {
  128.    DIALOG "Find", IDD_FIND, 160, 74, 206, 69,
  129.           FS_NOBYTEALIGN | FS_DLGBORDER | WS_VISIBLE |
  130.           WS_CLIPSIBLINGS | WS_SAVEBITS, FCF_SYSMENU | FCF_TITLEBAR {
  131.       CONTROL "Find:", -1, 10, 45, 21, 8, WC_STATIC,
  132.               SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
  133.       CONTROL "", IDD_FINDENTRY, 39, 45, 155, 8, WC_ENTRYFIELD,
  134.               ES_LEFT | ES_AUTOSCROLL | ES_MARGIN | WS_TABSTOP |
  135.               WS_VISIBLE
  136.       CONTROL "Case ~sensitive", IDD_CASESEN, 33, 25, 80, 10, WC_BUTTON,
  137.               BS_CHECKBOX | WS_TABSTOP | WS_VISIBLE
  138.       CONTROL "~Wrap", IDD_FINDWRAP, 134, 25, 36, 10, WC_BUTTON,
  139.               BS_CHECKBOX | WS_TABSTOP | WS_VISIBLE
  140.       CONTROL "~Find", DID_OK, 10, 5, 40, 13, WC_BUTTON,
  141.               BS_PUSHBUTTON | BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
  142.       CONTROL "Cancel", DID_CANCEL, 82, 5, 40, 13, WC_BUTTON,
  143.               BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
  144.       CONTROL "Help", -1, 154, 5, 40, 13, WC_BUTTON,
  145.               BS_PUSHBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE |
  146.               WS_TABSTOP | BS_HELP
  147.       }
  148.    }
  149.  
  150.  
  151. /******************************************************************/
  152. /* Help Sub Table Definitions                                     */
  153. /*                                                                */
  154. /* The help subtable is defined including the id for each item    */
  155. /* for which help is available, and the id to the corresponding   */
  156. /* help panel.  The id's for the locations in the program are     */
  157. /* defined in the MLEView.H file, and the id's for the help panels*/
  158. /* are defined in the MLEView.IPF file                            */
  159. /******************************************************************/
  160.  
  161.  
  162. HELPSUBTABLE IDST_VIEW
  163. SUBITEMSIZE 2 {
  164.    HELPSUBITEM     ID_RESOURCE,             1
  165.    HELPSUBITEM     IDM_FILE,                11
  166.    HELPSUBITEM     IDM_OPEN,                12
  167.    HELPSUBITEM     IDM_EXIT,                13
  168.    HELPSUBITEM     IDM_EDIT,                14
  169.    HELPSUBITEM     IDM_COPY,                15
  170.    HELPSUBITEM     IDM_FIND,                16
  171.    HELPSUBITEM     IDM_SELECTALL,           17
  172.    HELPSUBITEM     IDM_OPTIONS,             18
  173.    HELPSUBITEM     IDM_SETFONT,             19
  174.    HELPSUBITEM     IDM_SETCOLORS,           20
  175.    HELPSUBITEM     IDM_WORDWRAP,            21
  176.    HELPSUBITEM     IDM_HELP,                22
  177.    HELPSUBITEM     IDM_HELPFORHELP,         23
  178.    HELPSUBITEM     SC_HELPEXTENDED,         24
  179.    HELPSUBITEM     SC_HELPKEYS,             25
  180.    HELPSUBITEM     SC_HELPINDEX,            26
  181.    HELPSUBITEM     IDM_ABOUT,               27
  182.    }
  183.  
  184. HELPSUBTABLE IDST_FIND
  185. SUBITEMSIZE 2 {
  186.    HELPSUBITEM     IDD_FINDENTRY,           35
  187.    HELPSUBITEM     IDD_CASESEN,             36
  188.    HELPSUBITEM     IDD_FINDWRAP,            37
  189.    HELPSUBITEM     DID_OK,                  38
  190.    HELPSUBITEM     DID_CANCEL,              39
  191.    }
  192.  
  193. HELPSUBTABLE IDST_SETFONT
  194. SUBITEMSIZE 2 {
  195.    HELPSUBITEM     IDD_FONT_LB,             41
  196.    HELPSUBITEM     IDD_SIZE_LB,             42
  197.    HELPSUBITEM     IDD_BOLD_CB,             43
  198.    HELPSUBITEM     IDD_ITALIC_CB,           44
  199.    HELPSUBITEM     IDD_UNDERS_CB,           45
  200.    HELPSUBITEM     IDD_STRIKE_CB,           46
  201.    HELPSUBITEM     DID_OK,                  47
  202.    HELPSUBITEM     IDD_APPLY_BT,            48
  203.    HELPSUBITEM     DID_CANCEL,              49
  204.    }
  205.  
  206. HELPSUBTABLE IDST_SETCOLORS
  207. SUBITEMSIZE 2 {
  208.    HELPSUBITEM     IDD_FORG_LB,             51
  209.    HELPSUBITEM     IDD_BAKG_LB,             52
  210.    HELPSUBITEM     DID_OK,                  53
  211.    HELPSUBITEM     IDD_APPLYC_BT,           54
  212.    HELPSUBITEM     DID_CANCEL,              55
  213.    }
  214.  
  215. /*****************************************************************/
  216. /* Help Table Definition                                         */
  217. /*                                                               */
  218. /* The main help table is defined including the window for which */
  219. /* help will be displayed, the help subtable which references    */
  220. /* the help panels and the panel id for the extended help panel  */
  221. /*****************************************************************/
  222.  
  223. /*--------------------------------------------------------------------*/
  224. /* Help Table Note:                                                   */
  225. /*     The HELPITEM id must match both a DLGTEMPLATE and DIALOG id in */
  226. /*     order for the Help system to locate the proper help subtable.  */
  227. /*--------------------------------------------------------------------*/
  228.  
  229. HELPTABLE IDHT_HELPTABLE {
  230.    HELPITEM ID_RESOURCE,    IDST_VIEW,         1
  231.    HELPITEM IDD_FIND,       IDST_FIND,         34
  232.    HELPITEM IDD_SETFONT,    IDST_SETFONT,      40
  233.    HELPITEM IDD_SETCOLORS,  IDST_SETCOLORS,    50
  234.    }
  235.  
  236.