
/*------------------------------------------------------------------*
 *                                                                  *
 *  Video Toolkit For OS/2 Version 1.0                              *
 *  Example PM Application No. 4.                                   *
 *  Written by Stephen Sloan.                                       *
 *  Date : 13/07/95.                                                *
 *  Copyright Abbotsbury Software Ltd. (c), United Kingdom. 1995.   *
 *                                                                  *
 *  Filename : ex4.rc                                               *
 *                                                                  *
 *------------------------------------------------------------------*/

#define     INCL_PM
#define     INCL_BITMAP
#define     INCL_GRAPHICBUTTON

#include    <os2.h>
#include    <sw.h>
#include    "ex4.h"
#include    "helpfunc.h"

rcinclude ex4.dlg

BITMAP  BMP_SWAN            swan.bmp

POINTER IDR_MAIN            ex4.ico
POINTER PTR_REMOTE          rem.ptr

MENU IDR_MAIN PRELOAD
BEGIN
        SUBMENU "~File",                        IDM_FILE, MIS_TEXT
        {
            MENUITEM "~Quit...        F3",      IDM_FILE_QUIT, MIS_TEXT
        }

        MENUITEM "~Tune...        F4",          IDM_TUNE, MIS_TEXT

        MENUITEM "TV ~setup...    F5",          IDM_TV_SETUP, MIS_TEXT

        SUBMENU "~Capture",                     IDM_CAPTURE, MIS_TEXT
        {
            MENUITEM "Convert in ~C",           IDM_CAPTURE_C, MIS_TEXT
            MENUITEM "Convert in ~ASM",         IDM_CAPTURE_ASM, MIS_TEXT
            MENUITEM "Ca~pture    F6",          IDM_CAPTURE_CAPTURE, 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
    VK_F4,  IDM_TUNE,               VIRTUALKEY
    VK_F5,  IDM_TV_SETUP,           VIRTUALKEY
    VK_F6,  IDM_CAPTURE_CAPTURE,    VIRTUALKEY
END

MENU IDD_CAPTURE LOADONCALL
BEGIN
        SUBMENU "~File",                    IDM_CAPT_FILE, MIS_TEXT
        {
            MENUITEM "~Save...      ",      IDM_CAPT_FILE_SAVE, MIS_TEXT
        }
END

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

STRINGTABLE PRELOAD
{
    IDS_TITLEBAR          "Example 4"
    IDS_CANNOTLOADSTRING  "Failed to load resource string"
    IDS_HELPLIBRARYNAME   "EX4.HLP"
    IDS_HELPWINDOWTITLE   "Example 4 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
}
