home *** CD-ROM | disk | FTP | other *** search
- /*******************************************************************
- * HELPDEMO.SRC
- * (c) 1992-1994 STAR DIVISION
- *******************************************************************/
-
- #include "helpdemo.hrc"
- #include "helpdemo.hhc"
-
- Menu APP_MENUBAR
- {
- ItemList =
- {
- MenuItem
- {
- Text = "~Draw";
- Identifier = PM_DRAW;
- HelpText = "Draw-Menu";
- HelpId = HELPID_COLORSHAPE;
- SubMenu = Menu
- {
- ItemList =
- {
- MenuItem
- {
- Text = "~Color and Shape...";
- Identifier = MI_DRAW;
- HelpText = "Activation of a dialog box "
- "to select color and shape";
- HelpId = HELPID_COLORSHAPE;
- };
- MenuItem
- {
- Separator = TRUE;
- };
- MenuItem
- {
- Text = "~Exit";
- Identifier = MI_EXIT;
- HelpText = "Exit program";
- HelpId = HELPID_EXIT;
- };
- };
- };
- };
-
- MenuItem
- {
- Text = "~Help";
- Identifier = PM_HELP;
- Help = TRUE;
- HelpText = "Help,Menu to select help";
- HelpId = HELP_INDEX;
- SubMenu = Menu
- {
- ItemList =
- {
- MenuItem
- {
- Text = "~Index";
- Identifier = MI_INDEX;
- HelpText = "Start Help-Index";
- HelpId = HELP_INDEX;
- };
- MenuItem
- {
- Text = "~HelpOnHelp";
- Identifier = MI_HELPONHELP;
- HelpText = "Help for the Help-System";
- HelpId = HELP_HELPONHELP;
- };
- MenuItem
- {
- Separator = TRUE;
- };
- MenuItem
- {
- Text = "Color and Shape";
- Identifier = MI_DRAWHELP;
- HelpText = "Help for the dialog box: "
- "Color and Shape";
- HelpId = HELPID_COLORSHAPE;
- };
- MenuItem
- {
- Text = "~Color";
- Identifier = MI_COLORHELP;
- HelpText = "Help for the color selection";
- HelpId = HELPID_COLORS;
- };
- MenuItem
- {
- Text = "Sha~pe";
- Identifier = MI_SHAPEHELP;
- HelpText = "Help for the shape selection";
- HelpId = HELPID_SHAPE;
- };
- MenuItem
- {
- Separator = TRUE;
- };
- MenuItem
- {
- Text = "~About...";
- Identifier = MI_ABOUT;
- About = TRUE;
- HelpText = "Information about the "
- "program";
- HelpId = HELPID_ABOUTBOX;
- };
- };
- };
- };
- };
- };
-
- ModalDialog DLG_SHAPE
- {
- Size = MAP_APPFONT( 135, 145 );
- OutputSize = TRUE;
- Moveable = TRUE;
- SVLook = TRUE;
- Text = "Color and Shape";
- HelpId = HELPID_COLORSHAPE;
- HelpText = "Dialog box for selecting color and shape";
-
- RadioButton DLG_BLACK
- {
- PosSize = MAP_APPFONT( 10, 18, 50, 10 );
- Text = "~Black";
- HelpText = "Selecting a color";
- HelpId = HELPID_COLORS;
- };
-
- RadioButton DLG_BLUE
- {
- PosSize = MAP_APPFONT( 10, 30, 50, 10 );
- Text = "B~lue";
- HelpText = "Selecting a color";
- HelpId = HELPID_COLORS;
- };
-
- RadioButton DLG_GREEN
- {
- PosSize = MAP_APPFONT( 10, 42, 50, 10 );
- Text = "~Green";
- HelpText = "Selecting a color";
- HelpId = HELPID_COLORS;
- };
-
- RadioButton DLG_CYAN
- {
- PosSize = MAP_APPFONT( 10, 54, 50, 10 );
- Text = "~Cyan";
- HelpText = "Selecting a color";
- HelpId = HELPID_COLORS;
- };
-
- RadioButton DLG_RED
- {
- PosSize = MAP_APPFONT( 10, 66, 50, 10 );
- Text = "~Red";
- HelpText = "Selecting a color";
- HelpId = HELPID_COLORS;
- };
-
- RadioButton DLG_MAGENTA
- {
- PosSize = MAP_APPFONT( 10, 78, 50, 10 );
- Text = "~Magenta";
- HelpText = "Selecting a color";
- HelpId = HELPID_COLORS;
- };
-
- RadioButton DLG_YELLOW
- {
- PosSize = MAP_APPFONT( 10, 90, 50, 10 );
- Text = "~Yellow";
- HelpText = "Selecting a color";
- HelpId = HELPID_COLORS;
- };
-
- RadioButton DLG_WHITE
- {
- PosSize = MAP_APPFONT( 10, 102, 50, 10 );
- Text = "~White";
- HelpText = "Selecting a color";
- HelpId = HELPID_COLORS;
- };
-
- GroupBox DLG_GB1
- {
- PosSize = MAP_APPFONT( 5, 5, 60, 115 );
- Text = "Color";
- };
-
- Control DLG_VIEW
- {
- PosSize = MAP_APPFONT( 70, 10, 60, 55 );
- Border = TRUE;
- };
-
- RadioButton DLG_RECT
- {
- PosSize = MAP_APPFONT( 75, 85, 50, 10 );
- Text = "Rec~tangle";
- HelpText = "Selecting a shape";
- HelpId = HELPID_SHAPE;
- };
-
- RadioButton DLG_ELL
- {
- PosSize = MAP_APPFONT( 75, 97, 50, 10 );
- Text = "~Ellipse";
- HelpText = "Selecting a shape";
- HelpId = HELPID_SHAPE;
- };
-
- GroupBox DLG_GB2
- {
- PosSize = MAP_APPFONT( 70, 70, 60, 50 );
- Text = "Shape";
- };
-
- OKButton DLG_OK
- {
- PosSize = MAP_APPFONT( 5, 125, 37, 15 );
- DefButton = TRUE;
- HelpText = "Confirm selection and exit dialog";
- };
-
- CancelButton DLG_CANCEL
- {
- PosSize = MAP_APPFONT( 49, 125, 37, 15 );
- HelpText = "Abort dialog";
- };
-
- HelpButton DLG_HELP
- {
- PosSize = MAP_APPFONT( 93, 125, 37, 15 );
- HelpText = "Help for ShapeDialog";
- };
- };
-
- InfoBox ABOUTBOX
- {
- Title = "About";
- Message = "Help Demonstration Program\n"
- "(c) 1992-1994 STAR DIVISION";
- Buttons = WB_OK;
- DefButton = WB_DEF_OK;
- HelpId = HELPID_ABOUTBOX;
- };
-
- String HELPSTATUS
- {
- Text = "The StatusBar shows short Help Texts";
- };
-
- String WINHELP
- {
- Text = "Select a menu item";
- };
-
- String EXTHELP
- {
- Text = "Help (Choose topic by clicking)";
- };
-
- String ABOUTHELP
- {
- Text = "Press the OK-Button";
- };
-