home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
videotlk.zip
/
SAMPLES
/
EX2
/
EX2.RC
< prev
next >
Wrap
Text File
|
1995-08-29
|
4KB
|
109 lines
/*------------------------------------------------------------------*
* *
* Video Toolkit For OS/2 Version 1.0 *
* Example PM Application No. 2. *
* Written by Stephen Sloan and Tony Hicketts. *
* Date : 22/02/95. *
* Copyright (c) Abbotsbury Software Ltd., United Kingdom. 1995. *
* *
* Filename : ex2.rc *
* *
*------------------------------------------------------------------*/
#define INCL_PM
#define INCL_BITMAP
#define INCL_GRAPHICBUTTON
#include <os2.h>
#include <sw.h>
#include "ex2.h"
#include "helpfunc.h"
rcinclude ex2.dlg
BITMAP BMP_SWAN swan.bmp
POINTER IDR_MAIN ex2.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
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
END
/*
* Define all strings to be used by this application
*/
STRINGTABLE PRELOAD
{
IDS_TITLEBAR "Example 2"
IDS_CANNOTLOADSTRING "Failed to load resource string"
IDS_HELPLIBRARYNAME "EX2.HLP"
IDS_HELPWINDOWTITLE "Example 2 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
}