home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / MM / MMBROWSE / MMBROWSE.RC < prev    next >
Text File  |  1995-02-21  |  7KB  |  189 lines

  1. #include <os2.h>
  2. #include "mmbrowse.h"
  3.  
  4. ICON    ID_WINDOW mmbrowse.ico
  5. BITMAP  IDR_BITMAP "mmbrowse.bmp"
  6.  
  7. MENU    ID_WINDOW PRELOAD
  8. BEGIN
  9.   SUBMENU "~File",                   ID_FILE
  10.   BEGIN
  11.     MENUITEM "~Open an image file",  ID_FILE_OPEN,      MIS_TEXT
  12.     MENUITEM SEPARATOR
  13.     MENUITEM "~SaveAs...",           ID_FILE_SAVEAS,    MIS_TEXT
  14.     MENUITEM SEPARATOR
  15.     MENUITEM "E~xit",                ID_EXITPROG,       MIS_TEXT
  16.   END
  17.  
  18.   SUBMENU "~IOProc",                    ID_CONFIG
  19.   BEGIN
  20.     MENUITEM "~Install Temporary IO Proc", ID_CONFIG_INST_TEMP,  MIS_TEXT
  21.     MENUITEM "~Install Permanent IO Proc", ID_CONFIG_INST_PERM,  MIS_TEXT
  22.     MENUITEM SEPARATOR
  23.     MENUITEM "~Remove Permanent IO Proc",  ID_CONFIG_REM_PERM,   MIS_TEXT
  24.     MENUITEM SEPARATOR
  25.     MENUITEM "~Query Installed IO Procs",  ID_CONFIG_QUERY_ALL,  MIS_TEXT
  26.   END
  27.  
  28.   SUBMENU "~Help",                   ID_HELP
  29.   BEGIN
  30.     MENUITEM "~Help index",            IDM_HELPINDEX
  31.     MENUITEM "~General help",          IDM_HELPGENERAL
  32.     MENUITEM "~Using help",            IDM_HELPUSINGHELP
  33.     MENUITEM SEPARATOR
  34.     MENUITEM "~Product information...",IDM_HELPPRODUCTINFO
  35.   END
  36. END
  37.  
  38. ACCELTABLE ID_WINDOW PRELOAD
  39. BEGIN
  40.   VK_F3,   ID_EXITPROG,    VIRTUALKEY
  41. END
  42.  
  43. STRINGTABLE PRELOAD
  44. BEGIN
  45.  
  46.  IDS_OPEN_DIALOG_TITLE,              "Open Image File"
  47.  IDS_OPEN_DIALOG_FILE_EXT,           "*.*"
  48.  IDS_OPEN_OK_BUTTON,                 "Open"
  49.  
  50.  IDS_INSTALL_TITLE,                  "Install New IO Procedure"
  51.  IDS_INSTALL_FILE_EXT,               "*.DLL"
  52.  IDS_INSTALL_OK_BUTTON,              "Install"
  53.  IDS_INSTALL_EXIT_BUTTON,            "Exit"
  54.  
  55.  IDS_IOPROC_NAME,                    "IOProc_Entry"
  56.  IDS_INSTALL_EXIT,                   "IO Procedure successfully installed."
  57.  IDS_INSTALL_NOTE,                   "To have permanent installation take effect, please Reboot."
  58.  
  59.  IDS_INSTALL_IOPROC_FAILED,          "Installation of IO Proc Failed. mmioIniFileHandler Return Code:"
  60.  
  61. END
  62.  
  63. DLGTEMPLATE GET_FOURCC LOADONCALL MOVEABLE DISCARDABLE
  64. BEGIN
  65.     DIALOG "Get FourCC", GET_FOURCC,
  66.                35, 40, 196, 77,
  67.                FS_NOBYTEALIGN | FS_SYSMODAL | FS_DLGBORDER | WS_VISIBLE |
  68.                WS_SAVEBITS | WS_SYNCPAINT | WS_CLIPSIBLINGS,
  69.                FCF_TITLEBAR | FCF_NOBYTEALIGN
  70.     BEGIN
  71.  
  72.         CONTROL "", GET_FOURCC_TEXT,
  73.                 78, 42, 38, 8,
  74.                 WC_ENTRYFIELD, ES_LEFT | ES_MARGIN | WS_TABSTOP | WS_VISIBLE
  75.  
  76.         CONTROL "Enter the Four Character Code (FOURCC)", GET_FOURCC_INSTRUCTIONS,
  77.                 7, 61, 180, 8,
  78.                 WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
  79.  
  80.         CONTROL "OK", GET_FOURCC_OK_BUTTON,
  81.                 28, 12, 38, 13,
  82.                 WC_BUTTON, BS_PUSHBUTTON | BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
  83.  
  84.         CONTROL "Cancel", GET_FOURCC_CANCEL_BUTTON,
  85.                 77, 12, 38, 13,
  86.                 WC_BUTTON, BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
  87.  
  88.         CONTROL "Help", GET_FOURCC_HELP_BUTTON,
  89.                 129, 12, 38, 13,
  90.                 WC_BUTTON, BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
  91.     END
  92. END
  93.  
  94.  
  95. DLGTEMPLATE QUERY_ALL_LIST_BOX LOADONCALL MOVEABLE DISCARDABLE
  96. BEGIN
  97.     DIALOG "Query Installed IO Procs",  QUERY_ALL_LIST_BOX, 10, 49, 273, 76,
  98.                FS_NOBYTEALIGN | FS_SYSMODAL | FS_DLGBORDER | WS_VISIBLE |
  99.                WS_SAVEBITS | WS_SYNCPAINT | WS_CLIPSIBLINGS,
  100.                FCF_TITLEBAR | FCF_NOBYTEALIGN
  101.  
  102.     BEGIN
  103.         CONTROL "", QUERY_ALL_LIST_BOX_ENTRIES, 17, 31, 241, 37, WC_LISTBOX,
  104.                 WS_TABSTOP | WS_VISIBLE
  105.  
  106.         CONTROL "OK", QUERY_ALL_LIST_BOX_OK, 27, 9, 38, 13, WC_BUTTON,
  107.                 BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
  108.  
  109.         CONTROL "Cancel", QUERY_ALL_LIST_BOX_CANCEL, 115, 9, 38, 13, WC_BUTTON,
  110.                 BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
  111.  
  112.     END
  113. END
  114.  
  115. DLGTEMPLATE REMOVE_PERM_LIST_BOX LOADONCALL MOVEABLE DISCARDABLE
  116. BEGIN
  117.     DIALOG "Remove Permanently Installed IO Procs",  REMOVE_PERM_LIST_BOX, 10, 49, 273, 76,
  118.                FS_NOBYTEALIGN | FS_SYSMODAL | FS_DLGBORDER | WS_VISIBLE |
  119.                WS_SAVEBITS | WS_SYNCPAINT | WS_CLIPSIBLINGS,
  120.                FCF_TITLEBAR | FCF_NOBYTEALIGN
  121.  
  122.     BEGIN
  123.         CONTROL "", REMOVE_PERM_LIST_BOX_ENTRIES, 17, 31, 241, 37, WC_LISTBOX,
  124.                 LS_MULTIPLESEL | WS_TABSTOP | WS_VISIBLE
  125.  
  126.         CONTROL "Remove", REMOVE_PERM_LIST_BOX_OK, 27, 9, 38, 13, WC_BUTTON,
  127.                 BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
  128.  
  129.         CONTROL "Cancel", REMOVE_PERM_LIST_BOX_CANCEL, 115, 9, 38, 13, WC_BUTTON,
  130.                 BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
  131.  
  132.         CONTROL "Help", REMOVE_PERM_LIST_BOX_HELP, 197, 9, 38, 13, WC_BUTTON,
  133.                 BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
  134.     END
  135. END
  136.  
  137.  
  138.  
  139.  
  140. HELPTABLE   MMBROWSER_HELP_TABLE
  141. {
  142.     HELPITEM   ID_RESOURCE,     SUBTABLE_MAIN,            PANEL_MAIN
  143.     HELPITEM   IDD_PRODUCTINFO, SUBTABLE_PRODUCTINFODLG,  PANEL_PRODUCTINFODLG
  144.     HELPITEM   IDD_SETCOUNT,    SUBTABLE_PRODUCTINFODLG,  PANEL_PRODUCTINFODLG
  145. }
  146.  
  147. /*--------------------------------------------------------------*\
  148.  *  Main window subtable, includes menu item help               *
  149. \*--------------------------------------------------------------*/
  150. HELPSUBTABLE SUBTABLE_MAIN
  151. SUBITEMSIZE     2
  152. {
  153.     HELPSUBITEM     IDM_HELP,                PANEL_HELP
  154.     HELPSUBITEM     IDM_HELPINDEX,           PANEL_HELPINDEX
  155.     HELPSUBITEM     IDM_HELPGENERAL,         PANEL_HELPGENERAL
  156.     HELPSUBITEM     IDM_HELPUSINGHELP,       PANEL_HELPUSINGHELP
  157.     HELPSUBITEM     IDM_HELPPRODUCTINFO,     PANEL_HELPPRODUCTINFO
  158.  
  159. }
  160. /*--------------------------------------------------------------*\
  161.  *  Enter text dialog help subtable                             *
  162. \*--------------------------------------------------------------*/
  163. HELPSUBTABLE SUBTABLE_PRODUCTINFODLG
  164. SUBITEMSIZE     2
  165. {
  166.     HELPSUBITEM     IDD_ENTRYFLD,            PANEL_PRODUCTINFO_OK
  167.     HELPSUBITEM     DID_OK,                  PANEL_PRODUCTINFO_OK
  168. }
  169.  
  170.  
  171. DLGTEMPLATE IDD_PRODUCTINFO LOADONCALL MOVEABLE DISCARDABLE
  172. BEGIN
  173.     DIALOG  "Product information", IDD_PRODUCTINFO, 57, 3, 262, 137,
  174.             FS_NOBYTEALIGN | WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  175.     BEGIN
  176.         CONTROL         IDR_BITMAP, IDC_BITMAP, 117, 75, 21, 21, WC_STATIC,
  177.                         SS_BITMAP | WS_GROUP | WS_VISIBLE
  178.         CTEXT           "MMBROWSE", 230, 7, 64, 255, 8
  179.         CTEXT           "(C) Copyright IBM Corporation 1993. All Rights rese"
  180.                         "rved.", 230, 7, 54, 255, 8
  181.         CTEXT           "IBM is a registered trademark of", 230, 7, 44, 255,
  182.                         8
  183.         CTEXT           "International Business Machines Corp.", 230, 7, 34,
  184.                         255, 8
  185.         PUSHBUTTON      "OK", -1, 111, 8, 45, 15
  186.     END
  187. END
  188.  
  189.