home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
igpb1.zip
/
AHELLOW4.RC
< prev
next >
Wrap
Text File
|
1993-05-12
|
6KB
|
82 lines
/******************************************************************************/
/* HELLO WORLD SAMPLE PROGRAM - Version 4: Resource Definitions (AHELLOW4.RC) */
/* */
/* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1993. */
/* */
/* DISCLAIMER OF WARRANTIES: */
/* The following [enclosed] code is sample code created by IBM */
/* Corporation. This sample code is not part of any standard IBM product */
/* and is provided to you solely for the purpose of assisting you in the */
/* development of your applications. The code is provided "AS IS", */
/* without warranty of any kind. IBM shall not be liable for any damages */
/* arising out of your use of the sample code, even if they have been */
/* advised of the possibility of such damages. */
/******************************************************************************/
#include <os2.h> //Include os2.h v4
#include "ahellow4.h" //Symbolic Definitions v2
//************************************************************************** v2
// icon and bitmap resources * .
// Symbolic Name (ID) <-> icon filename * .
//************************************************************************** .
ICON WND_MAIN ahellow4.ico //Title Bar Icon (use same id)v2
//************************************************************************** v2
// string resources - used by IStaticText & ITitle Classes * .
// Symbolic Name (ID) <-> Text String * .
//************************************************************************** v2
STRINGTABLE
BEGIN
STR_HELLO, "Hello, World!!!!" //Hello World String v4
WND_MAIN, "C++ Hello World - Version 4" //Title Bar String (main id) v4
STR_INFO, "Use Alt-F4 to Close Window" //Information Area String v2
MI_EDIT, "Edit Menu" //InfoArea - Edit Menu v4 .
MI_ALIGNMENT,"Alignment Menu" //InfoArea - Alignment Menu v3
MI_CENTER, "Set Center Alignment" //InfoArea - Center Menu .
MI_LEFT, "Set Left Alignment" //InfoArea - Left Menu .
MI_RIGHT, "Set Right Alignment" //InfoArea - Right Menu v3
MI_TEXT, "Display Edit Dialog" //InfoArea - Text Menu v4
STR_INFODLG,"Modal Edit Text Dialog Active" //Information Area String v4
STR_CENTER, "Center Alignment" //Status Line Text - Center v3
STR_LEFT, "Left Alignment" //Status Line Text - Left .
STR_RIGHT, "Right Alignment" //Status Line Text - Right v3
STR_LEFTB, "Left" //String for Left Button v4
STR_CENTERB,"Center" //String for Center Button .
STR_RIGHTB, "Right" //String for Right Button v4
END
//************************************************************************** v3
// menu bar for main window - used by IMenuBar Class * .
// Text String <-> Menu Item ID (Command ID) * .
//************************************************************************** v3
MENU WND_MAIN //Main Window Menu (WND_MAIN) v3
BEGIN
SUBMENU "~Edit", MI_EDIT //Edit Submenu v4
BEGIN
SUBMENU "~Alignment", MI_ALIGNMENT //Alignment Submenu v3
BEGIN
MENUITEM "~Left\tF7", MI_LEFT //Left Menu Item - F7 Key v4
MENUITEM "~Center\tF8", MI_CENTER //Center Menu Item - F8 Key v4
MENUITEM "~Right\tF9", MI_RIGHT //Right Menu Item - F9 Key v4
END
MENUITEM "~Text...", MI_TEXT //Text Menu Item v4
END
END
//************************************************************************** v4
// Accelerator (key) table resources - used by IAccelerator Class * .
// Key Value <-> Menu Item ID (Command ID) * .
//************************************************************************** .
ACCELTABLE WND_MAIN //Acc. Table for Main Window .
BEGIN // .
VK_F7, MI_LEFT, VIRTUALKEY //F7 - Left Command .
VK_F8, MI_CENTER, VIRTUALKEY //F8 - Center Command .
VK_F9, MI_RIGHT, VIRTUALKEY //F9 - Right Command .
END // v4
//************************************************************************** v4
// dialog resources - used by ATextDialog Class * .
//************************************************************************** .
rcinclude adialog4.dlg //Text Dialog Template v4