home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / OS2 / SORT / SORT.RC < prev   
Text File  |  1994-11-17  |  4KB  |  98 lines

  1. /*==============================================================*\
  2.  *                                                              *
  3.  * SORT.RC - Sample PM application resource file                *
  4.  *                                                              *
  5. \*==============================================================*/
  6. #include <os2.h>
  7. #include "sort.h"
  8.  
  9. POINTER ID_RESOURCE  sort.ico
  10. BITMAP  IDC_BITMAP   "prodinfo.bmp"
  11.  
  12. MENU ID_RESOURCE
  13. BEGIN
  14.    SUBMENU  "~Options", -1
  15.       BEGIN
  16.          MENUITEM "~Randomize data",           IDM_RANDOM
  17.          MENUITEM "~Set...  Alt+S",            IDM_SET
  18.          MENUITEM "S~tart",                    IDM_START
  19.          MENUITEM "Sto~p",                     IDM_STOP,, MIA_DISABLED
  20.       END
  21.    SUBMENU  "~Help", -2
  22.       BEGIN
  23.          MENUITEM "~Help index",               IDM_HELPINDEX
  24.          MENUITEM "~General help",             IDM_GENERALHELP
  25.          MENUITEM "~Keys Help",                IDM_TUTORIAL
  26.          MENUITEM "~Using help",               IDM_USINGHELP
  27.          MENUITEM SEPARATOR
  28.          MENUITEM "~Product information...",   IDM_HELPPRODUCTINFO
  29.       END
  30. END
  31.  
  32. /*--------------------------------------------------------------*\
  33.  *  Help table definition                                       *
  34. \*--------------------------------------------------------------*/
  35. HELPTABLE   SORT_HELP_TABLE
  36. {
  37.     HELPITEM   ID_RESOURCE,     SUBTABLE_MAIN,            PANEL_MAIN
  38.     HELPITEM   IDD_PRODUCTINFO, SUBTABLE_PRODUCTINFODLG,  PANEL_PRODUCTINFODLG
  39.     HELPITEM   IDD_SETCOUNT,    SUBTABLE_PRODUCTINFODLG,  PANEL_PRODUCTINFODLG
  40. }
  41.  
  42. /*--------------------------------------------------------------*\
  43.  *  Main window subtable, includes menu item help               *
  44. \*--------------------------------------------------------------*/
  45. HELPSUBTABLE SUBTABLE_MAIN
  46. SUBITEMSIZE     2
  47. {
  48.     HELPSUBITEM     IDM_GENERALHELP,         PANEL_GENERALHELP
  49.     HELPSUBITEM     IDM_USINGHELP,           PANEL_USINGHELP
  50.     HELPSUBITEM     IDM_TUTORIAL,            PANEL_TUTORIAL
  51.     HELPSUBITEM     IDM_HELPINDEX,           PANEL_HELPINDEX
  52.     HELPSUBITEM     IDM_HELPPRODUCTINFO,     PANEL_HELPPRODUCTINFO
  53.  
  54.     HELPSUBITEM     IDM_START,               PANEL_HELPSTART
  55.     HELPSUBITEM     IDM_STOP,                PANEL_HELPSTOP
  56.     HELPSUBITEM     IDM_SET,                 PANEL_HELPSET
  57.     HELPSUBITEM     IDM_RANDOM,              PANEL_HELPRANDOM
  58. }
  59.  
  60. /*--------------------------------------------------------------*\
  61.  *  Enter text dialog help subtable                             *
  62. \*--------------------------------------------------------------*/
  63. HELPSUBTABLE SUBTABLE_PRODUCTINFODLG
  64. SUBITEMSIZE     2
  65. {
  66.     HELPSUBITEM     DID_OK,                  PANEL_PRODUCTINFO_OK
  67.     HELPSUBITEM     IDD_ENTRYFLD,            PANEL_PRODUCTINFO_OK
  68. }
  69.  
  70. ACCELTABLE ID_RESOURCE
  71. {
  72.     "S",     IDM_SET,          ALT
  73.     "s",     IDM_SET,          ALT
  74. }
  75.  
  76.  
  77. STRINGTABLE
  78. {
  79.     IDS_TITLE,                  "Sort Demonstration"
  80.     IDS_UNTITLED                "Untitled"
  81.     IDS_APPNAME                 "Sort"
  82.     IDS_HELPLIBRARYNAME         "SORT.HLP"
  83.     IDS_HELPWINDOWTITLE         "Sort Help"
  84. }
  85.  
  86. MESSAGETABLE
  87. {
  88.     IDMSG_INITFAILED            "Initialization failed."
  89.     IDMSG_MAINWINCREATEFAILED   "Failed to create main window."
  90.     IDMSG_CANNOTLOADEXITLIST    "Cannot load Exit List processor."
  91.     IDMSG_CANNOTLOADSTRING      "Failed to load string."
  92.     IDMSG_HELPLOADERROR         "Failed to load help manager."
  93.     IDMSG_HELPDISPLAYERROR      "Failed to display help panel."
  94.     IDMSG_ERRORSIZE             "The setting size must be less than 1024."
  95. }
  96.  
  97. rcinclude sort.dlg
  98.