home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
IOC
/
HELLO6
/
AHELLOW6.RC
< prev
next >
Wrap
Text File
|
1995-04-14
|
15KB
|
205 lines
/******************************************************************************/
/* HELLO WORLD SAMPLE PROGRAM - Version 6: Resource Definitions (ahellow6.rc) */
/* */
/* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1995. */
/* */
/* 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. */
/******************************************************************************/
#ifdef IC_PM
#include <os2.h> //Include os2.h V4
#endif
#include "ahellow6.h" //Symbolic definitions v6
//************************************************************************** V2
// icon and bitmap resources * V2
// Relate symbolic name to file containing main window icon. * V2
//************************************************************************** V2
ICON WND_MAIN ahellow6.ico //Application icon v6
//************************************************************************** V2
// string resources * V2
// Relate symbolic names to literal text strings. * V2
//************************************************************************** V2
STRINGTABLE
BEGIN
STR_HELLO, "Hello, World!!!" //Hello World string V2
WND_MAIN, "Hello World Sample - Version 6" //Main window title string v6
WND_TEXTDIALOG, "Hello World Edit Dialog" //Dialog window title string V4
WND_HELLOPOPUP, "Hello Window Pop-up Menu" //InfoArea - Hello pop-up V4
WND_EARTHPOPUP, "Earth Window Pop-up Menu" //InfoArea - Earth pop-up V4
WND_NOTEBOOKFRAME, "Hello World Settings Notebook" // V6
//Settings notebook title V6
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 item V3
MI_LEFT, "Set Left Alignment" //InfoArea - Left menu item V3
MI_RIGHT, "Set Right Alignment" //InfoArea - Right menu item V3
MI_TEXT, "Display Edit Dialog" //InfoArea - Text menu item V4
MI_HELP, "Help for Selected Item" //InfoArea - Help menu item V5
MI_FONT, "Open Font Dialog" //InfoArea - Font menu item V6
MI_SETTINGS,"Settings Menu" //InfoArea - Settings menuitemV6
MI_READSETS,"Read Settings from Profile" //InfoArea - Settings menuitemV6
MI_OPENSETS,"Open Settings Notebook" //InfoArea - Settings menuitemV6
MI_SAVESETS,"Save Settings in Profile" //InfoArea - Settings menuitemV6
MI_TWINKLE, "Toggle Twinkling of Stars" //InfoArea - Earth pop-up itemV6
MI_BRIGHT, "Make Stars Bright (when not twinkling)" // V6
//InfoArea - Earth pop-up itemV6
MI_DIM, "Make Stars Dim (when not twinkling)" // V6
//InfoArea - Earth pop-up itemV6
SC_HELPEXTENDED, "Display General Help" //InfoArea - Extended Help V5
SC_HELPKEYS,"Display Keys Help" //InfoArea - Keys Help V5
SC_HELPINDEX,"Display Help Index" //InfoArea - Help Index V5
STR_INFODLG,"Modal Edit Text Dialog Active" //InfoArea - Text dialog V4
STR_CENTER, "Center Alignment" //Status line text - Center V3
STR_LEFT, "Left Alignment" //Status line text - Left V3
STR_RIGHT, "Right Alignment" //Status line text - Right V3
STR_LEFTB, "Left" //String for Left Button V4
STR_CENTERB,"Center" //String for Center Button V4
STR_RIGHTB, "Right" //String for Right Button V4
STR_HELPB, "Help" //String for Help Button V5
STR_HTITLE, "C++ Hello World - Help Window" //Help window title string V5
STR_HELP_NOT_FOUND, "Help file not found. Help is not available." //V5
STR_FONTDLGT,"C++ Hello World - Font Dialog"//Font dialog title string V6
STR_EARTHTAB, "Earth" //Notebook tab for Earth page V6
STR_DATETIMETAB, "Date\nTime" //Notebook tab for date & timeV6
STR_EARTHPAGEHEADING "Earth Window Settings" //V6
STR_STARSHEADING, "Star Settings" //V6
STR_TWINKLEBOX, "Twinkle" //String for twinkle check boxV6
STR_BRIGHTBOX, "Bright" //String for bright check box V6
STR_LAYERSHEADING, "Atmosphere Layers" //String for check box V6
STR_EARTHCOLORHEADING, "Earth Color" //V6
STR_CYAN, "Cyan" //V6
STR_GREEN, "Green" //V6
STR_WHITE "White" //V6
STR_YELLOW, "Yellow" //V6
STR_DATETIMEPAGEHEADING, "Date and Time Settings" //V6
STR_DATEHEADING, "Date Format" //V6
STR_DATELONGBOX, "Long" //V6
STR_DATESHORTBOX, "Short" //V6
STR_DATELONGEXAMPLE, "ex: August 10, 1994" //V6
STR_DATESHORTEXAMPLE, "ex: 08/10/94" //V6
STR_TIMEHEADING, "Time Format" //V6
STR_TIMELONGBOX, "Long" //V6
STR_TIMESHORTBOX, "Short" //V6
STR_TIMELONGEXAMPLE, "ex: 01:37:59 pm" //V6
STR_TIMESHORTEXAMPLE, "ex: 13:37" //V6
STR_APPLY, "Apply" //V6
STR_RESET, "Reset" //V6
STR_CLOSE, "Close" //V6
STR_READOK, "Settings successfully read from profile." //V6
STR_SAVEDOK, "Settings successfully saved to profile." //V6
DID_OK, "OK" //Text dialog - OK button V4
DID_CANCEL, "Cancel" //Text dialog - Cancel button V4
DID_STATIC, "Edit Text:" //Text dialog - Prompt V4
DID_ENTRY, "" //Text dialog - Entry field V4
// Change HI_COUNT in ahellow6.h to change number of HIs used. v6
HI_WORLD, "Hello, World!" //English V5
HI_WORLD+1, "Hi, World!" //American V5
HI_WORLD+2, "Howdy, World!" //Southern American V5
HI_WORLD+3, "Alo, Mundo!" //Portuguese V5
HI_WORLD+4, "Ola, Mondo!" //Spanish V5
HI_WORLD+5, "Hallo wereld!" //Dutch V5
HI_WORLD+6, "Hallo Welt!" //German V5
HI_WORLD+7, "Bonjour le monde!" //French V5
HI_WORLD+8, "Put your language here!" //Add more items, too! V5
// Change HI_COUNT in ahellow6.h to change number of HIs used. v6
END
//************************************************************************** V3
// Menu bar for main window - used by IMenuBar Class * V3
// Define menu bar layout and relate symbolic names to menu item strings.* V3
//************************************************************************** V3
MENU WND_MAIN //Main window menu bar 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 dialog menu item V4
MENUITEM "~Font...", MI_FONT //Font dialog menu item V6
END
SUBMENU "~Settings", MI_SETTINGS //Settings notebook submenu V6
BEGIN
MENUITEM "~Read from profile", MI_READSETS //Read menu item V6
MENUITEM "~Open ...", MI_OPENSETS //Open menu item V6
MENUITEM "~Save to profile", MI_SAVESETS //Save menu item V6
END
SUBMENU "~Help", MI_HELP, MIS_HELP //Help submenu V5
BEGIN //V5
MENUITEM "~General help...", SC_HELPEXTENDED, MIS_SYSCOMMAND //V5
MENUITEM "~Keys help...", SC_HELPKEYS, MIS_SYSCOMMAND //V5
MENUITEM "Help ~index...", SC_HELPINDEX, MIS_SYSCOMMAND //V5
END //V5
END
//************************************************************************** V6
// Pop-up menus for AHelloWindow - used by IPopUpMenu class * V6
// Define pop-up menu layout and relate symbolic IDs to menu items. * V6
//************************************************************************** V6
MENU WND_HELLOPOPUP //Hello window pop-up menu V6
BEGIN
MENUITEM "~Left-align text", MI_LEFT //Hello pop-up menu item V6
MENUITEM "~Center text" , MI_CENTER //Hello pop-up menu item V6
MENUITEM "~Right-align text", MI_RIGHT //Hello pop-up menu item V6
END
MENU WND_EARTHPOPUP //Earth window pop-up menu V6
BEGIN
MENUITEM "~Twinkling stars", MI_TWINKLE //Earth pop-up menu item V6
MENUITEM SEPARATOR //Separator bar V6
MENUITEM "~Brighten stars", MI_BRIGHT //Earth pop-up menu item V6
MENUITEM "~Dim stars", MI_DIM //Earth pop-up menu item V6
END
//************************************************************************** V4
// Accelerator (key) table resources * V4
// Relate accelerator keys to command IDs. * V4
//************************************************************************** V4
ACCELTABLE WND_MAIN //Main window accelerators V4
BEGIN // V4
VK_F7, MI_LEFT, VIRTUALKEY //F7 - Left command V4
VK_F8, MI_CENTER, VIRTUALKEY //F8 - Center command V4
VK_F9, MI_RIGHT, VIRTUALKEY //F9 - Right command V4
END // V4
//************************************************************************** V5
// Help table resources - used by IHelpWindow class * V5
// Relate window IDs to help file IDs. * V4
//************************************************************************** V5
HELPTABLE HELP_TABLE //V5
BEGIN //V5
HELPITEM WND_MAIN, SUBTABLE_MAIN, 100 //V5
HELPITEM WND_TEXTDIALOG, SUBTABLE_DIALOG, 200 //V5
END //V5
HELPSUBTABLE SUBTABLE_MAIN //Main window help subtable V5
BEGIN // V5
HELPSUBITEM WND_HELLO, 100 //Hello static text help ID V5
HELPSUBITEM WND_LISTBOX,102 //List box help ID V5
HELPSUBITEM MI_EDIT, 110 //Edit menu item help ID V5
HELPSUBITEM MI_ALIGNMENT, 111 //Alignment menu item help ID V5
HELPSUBITEM MI_LEFT, 112 //Left command help ID V5
HELPSUBITEM MI_CENTER, 113 //Center command help ID V5
HELPSUBITEM MI_RIGHT, 114 //Right command help ID V5
HELPSUBITEM MI_TEXT, 199 //Text command help ID V5
END // V5
HELPSUBTABLE SUBTABLE_DIALOG //Text dialog help subtable V5
BEGIN // V5
HELPSUBITEM DID_ENTRY, 201 //Entry field help ID V5
HELPSUBITEM DID_OK, 202 //OK command help ID V5
HELPSUBITEM DID_CANCEL, 203 //Cancel command help ID V5
END // V5