
/*------------------------------------------------------------------*
 *                                                                  *
 *  Video Toolkit For OS/2 Version 1.0                              *
 *  Example Application No. 1                                       *
 *  Written by Stephen Sloan and Tony Hicketts.                     *
 *  Date : 22/02/95.                                                *
 *  Copyright (c) Abbotsbury Software Ltd., United Kingdom. 1995.   *
 *                                                                  *
 *  Filename : ex1.rc                                               *
 *                                                                  *
 *------------------------------------------------------------------*/

#define     INCL_PM

#include    <os2.h>
#include    "ex1.h"
#include    "helpfunc.h"

rcinclude ex1.dlg

BITMAP  BMP_SWAN            swan.bmp

POINTER IDR_MAIN            ex1.ico

MENU IDR_MAIN PRELOAD
BEGIN
        SUBMENU "~File",                        IDM_FILE, MIS_TEXT
        {
            MENUITEM "~Quit...        F3",      IDM_FILE_QUIT, MIS_TEXT
        }
        SUBMENU "~Help",                        IDM_HELP, MIS_TEXT
        {
            MENUITEM "Help ~contents...",       IDM_HELPCONTENTS, MIS_TEXT
            MENUITEM "Help ~index...",          IDM_HELPINDEX, MIS_TEXT
            MENUITEM "~General help...",        IDM_GENERALHELP, MIS_TEXT
            MENUITEM "~Keys help...",           IDM_KEYSHELP, MIS_TEXT
            MENUITEM SEPARATOR
            MENUITEM "~Product information...", IDM_HELPPRODUCTINFO, MIS_TEXT
        }
END

ACCELTABLE IDR_MAIN PRELOAD
BEGIN
    VK_F1,  IDM_HELPINDEX,      VIRTUALKEY
    VK_F3,  IDM_FILE_QUIT,      VIRTUALKEY
END

/*
 *   Define all strings to be used by this application
 */

STRINGTABLE PRELOAD
{
    IDS_TITLEBAR          "Example 1"
    IDS_CANNOTLOADSTRING  "Failed to load resource string"
    IDS_HELPLIBRARYNAME   "EX1.HLP"
    IDS_HELPWINDOWTITLE   "Example 1 Help"
    IDS_HELPLOADERROR     "Failed to load Help Manager."
    IDS_HELPDISPLAYERROR  "Failed to display help panel."
    IDS_HELPMANAGERERROR  "Help Manager Error occurred - destroying help instance."
    IDS_ERRORMSG          "%s encountered in file %s line %ld"
    IDS_UNKNOWNMSG        "Unknown Error encounted in file %s line %ld"
    IDS_ERROR_READ        "Error reading file."
    IDS_ERROR_OUTOFMEMORY "Error - out of memory"
    IDS_ERROR_TITLE       "Error Message"
}

/*
 *  Help table definition
 */

HELPTABLE   HELP_TABLE
{
    HELPITEM   IDR_MAIN,        SUBTABLE_MAIN,            PANEL_MAIN
    HELPITEM   IDD_PRODUCTINFO, SUBTABLE_PRODUCTINFODLG,  PANEL_PRODUCTINFODLG
}

/*
 *  Main window subtable, includes menu item help
 */

HELPSUBTABLE SUBTABLE_MAIN
SUBITEMSIZE     2
{
   /*
    *   HELP SUBMENU
    */

   HELPSUBITEM     IDM_HELPCONTENTS,           PANEL_HELPCONTENTS
   HELPSUBITEM     IDM_HELPINDEX,              PANEL_HELPINDEX
   HELPSUBITEM     IDM_GENERALHELP,            PANEL_GENERALHELP
   HELPSUBITEM     IDM_KEYSHELP,               PANEL_KEYSHELP
}

HELPSUBTABLE SUBTABLE_PRODUCTINFODLG
SUBITEMSIZE     2
{
   HELPSUBITEM    DID_OK,                     PANEL_PRODUCTINFO_OK
}
