home *** CD-ROM | disk | FTP | other *** search
/ PC Direkt 1995 March / PCD_395.iso / starview / wntmsci / german / helpdemo.sr_ / HELPDEMO.SRC
Encoding:
Text File  |  1994-01-18  |  7.4 KB  |  273 lines

  1. /*******************************************************************
  2. *  HELPDEMO.SRC
  3. *  (c) 1992-1994 STAR DIVISION
  4. *******************************************************************/
  5.  
  6. #include "helpdemo.hrc"
  7. #include "helpdemo.hhc"
  8.  
  9. Menu APP_MENUBAR
  10. {
  11.     ItemList =
  12.     {
  13.         MenuItem
  14.         {
  15.             Text       = "~Draw";
  16.             Identifier = PM_DRAW;
  17.             HelpText   = "Draw-Menu";
  18.             HelpId     = HELPID_COLORSHAPE;
  19.             SubMenu    = Menu
  20.             {
  21.                 ItemList =
  22.                 {
  23.                     MenuItem
  24.                     {
  25.                         Text       = "~Color and Shape...";
  26.                         Identifier = MI_DRAW;
  27.                         HelpText   = "Activation of a dialog box "
  28.                                      "to select color and shape";
  29.                         HelpId     = HELPID_COLORSHAPE;
  30.                     };
  31.                     MenuItem
  32.                     {
  33.                         Separator  = TRUE;
  34.                     };
  35.                     MenuItem
  36.                     {
  37.                         Text       = "~Exit";
  38.                         Identifier = MI_EXIT;
  39.                         HelpText   = "Exit program";
  40.                         HelpId     = HELPID_EXIT;
  41.                     };
  42.                 };
  43.             };
  44.         };
  45.  
  46.         MenuItem
  47.         {
  48.             Text       = "~Help";
  49.             Identifier = PM_HELP;
  50.             Help       = TRUE;
  51.             HelpText   = "Help,Menu to select help";
  52.             HelpId     = HELP_INDEX;
  53.             SubMenu    = Menu
  54.             {
  55.                 ItemList =
  56.                 {
  57.                     MenuItem
  58.                     {
  59.                         Text       = "~Index";
  60.                         Identifier = MI_INDEX;
  61.                         HelpText   = "Start Help-Index";
  62.                         HelpId     = HELP_INDEX;
  63.                     };
  64.                     MenuItem
  65.                     {
  66.                         Text       = "~HelpOnHelp";
  67.                         Identifier = MI_HELPONHELP;
  68.                         HelpText   = "Help for the Help-System";
  69.                         HelpId     = HELP_HELPONHELP;
  70.                     };
  71.                     MenuItem
  72.                     {
  73.                         Separator  = TRUE;
  74.                     };
  75.                     MenuItem
  76.                     {
  77.                         Text       = "Color and Shape";
  78.                         Identifier = MI_DRAWHELP;
  79.                         HelpText   = "Help for the dialog box: "
  80.                                      "Color and Shape";
  81.                         HelpId     = HELPID_COLORSHAPE;
  82.                     };
  83.                     MenuItem
  84.                     {
  85.                         Text       = "~Color";
  86.                         Identifier = MI_COLORHELP;
  87.                         HelpText   = "Help for the color selection";
  88.                         HelpId     = HELPID_COLORS;
  89.                     };
  90.                     MenuItem
  91.                     {
  92.                         Text       = "Sha~pe";
  93.                         Identifier = MI_SHAPEHELP;
  94.                         HelpText   = "Help for the shape selection";
  95.                         HelpId     = HELPID_SHAPE;
  96.                     };
  97.                     MenuItem
  98.                     {
  99.                         Separator  = TRUE;
  100.                     };
  101.                     MenuItem
  102.                     {
  103.                         Text       = "~About...";
  104.                         Identifier = MI_ABOUT;
  105.                         About      = TRUE;
  106.                         HelpText   = "Information about the "
  107.                                      "program";
  108.                         HelpId     = HELPID_ABOUTBOX;
  109.                     };
  110.                 };
  111.             };
  112.         };
  113.     };
  114. };
  115.  
  116. ModalDialog DLG_SHAPE
  117. {
  118.     Size       = MAP_APPFONT( 135, 145 );
  119.     OutputSize = TRUE;
  120.     Moveable   = TRUE;
  121.     SVLook     = TRUE;
  122.     Text       = "Color and Shape";
  123.     HelpId     = HELPID_COLORSHAPE;
  124.     HelpText   = "Dialog box for selecting color and shape";
  125.  
  126.     RadioButton DLG_BLACK
  127.     {
  128.         PosSize  = MAP_APPFONT( 10, 18, 50, 10 );
  129.         Text     = "~Black";
  130.         HelpText = "Selecting a color";
  131.         HelpId   = HELPID_COLORS;
  132.     };
  133.  
  134.     RadioButton DLG_BLUE
  135.     {
  136.         PosSize  = MAP_APPFONT( 10, 30, 50, 10 );
  137.         Text     = "B~lue";
  138.         HelpText = "Selecting a color";
  139.         HelpId   = HELPID_COLORS;
  140.     };
  141.  
  142.     RadioButton DLG_GREEN
  143.     {
  144.         PosSize  = MAP_APPFONT( 10, 42, 50, 10 );
  145.         Text     = "~Green";
  146.         HelpText = "Selecting a color";
  147.         HelpId   = HELPID_COLORS;
  148.     };
  149.  
  150.     RadioButton DLG_CYAN
  151.     {
  152.         PosSize  = MAP_APPFONT( 10, 54, 50, 10 );
  153.         Text     = "~Cyan";
  154.         HelpText = "Selecting a color";
  155.         HelpId   = HELPID_COLORS;
  156.     };
  157.  
  158.     RadioButton DLG_RED
  159.     {
  160.         PosSize  = MAP_APPFONT( 10, 66, 50, 10 );
  161.         Text     = "~Red";
  162.         HelpText = "Selecting a color";
  163.         HelpId   = HELPID_COLORS;
  164.     };
  165.  
  166.     RadioButton DLG_MAGENTA
  167.     {
  168.         PosSize  = MAP_APPFONT( 10, 78, 50, 10 );
  169.         Text     = "~Magenta";
  170.         HelpText = "Selecting a color";
  171.         HelpId   = HELPID_COLORS;
  172.     };
  173.  
  174.     RadioButton DLG_YELLOW
  175.     {
  176.         PosSize  = MAP_APPFONT( 10, 90, 50, 10 );
  177.         Text     = "~Yellow";
  178.         HelpText = "Selecting a color";
  179.         HelpId   = HELPID_COLORS;
  180.     };
  181.  
  182.     RadioButton DLG_WHITE
  183.     {
  184.         PosSize  = MAP_APPFONT( 10, 102, 50, 10 );
  185.         Text     = "~White";
  186.         HelpText = "Selecting a color";
  187.         HelpId   = HELPID_COLORS;
  188.     };
  189.  
  190.     GroupBox DLG_GB1
  191.     {
  192.         PosSize  = MAP_APPFONT( 5, 5, 60, 115 );
  193.         Text     = "Color";
  194.     };
  195.  
  196.     Control DLG_VIEW
  197.     {
  198.         PosSize  = MAP_APPFONT( 70, 10, 60, 55 );
  199.         Border   = TRUE;
  200.     };
  201.  
  202.     RadioButton DLG_RECT
  203.     {
  204.         PosSize  = MAP_APPFONT( 75, 85, 50, 10 );
  205.         Text     = "Rec~tangle";
  206.         HelpText = "Selecting a shape";
  207.         HelpId   = HELPID_SHAPE;
  208.     };
  209.  
  210.     RadioButton DLG_ELL
  211.     {
  212.         PosSize  = MAP_APPFONT( 75, 97, 50, 10 );
  213.         Text     = "~Ellipse";
  214.         HelpText = "Selecting a shape";
  215.         HelpId   = HELPID_SHAPE;
  216.     };
  217.  
  218.     GroupBox DLG_GB2
  219.     {
  220.         PosSize  = MAP_APPFONT( 70, 70, 60, 50 );
  221.         Text     = "Shape";
  222.     };
  223.  
  224.     OKButton DLG_OK
  225.     {
  226.         PosSize   = MAP_APPFONT( 5, 125, 37, 15 );
  227.         DefButton = TRUE;
  228.         HelpText  = "Confirm selection and exit dialog";
  229.     };
  230.  
  231.     CancelButton DLG_CANCEL
  232.     {
  233.         PosSize   = MAP_APPFONT( 49, 125, 37, 15 );
  234.         HelpText = "Abort dialog";
  235.     };
  236.  
  237.     HelpButton DLG_HELP
  238.     {
  239.         PosSize  = MAP_APPFONT( 93, 125, 37, 15 );
  240.         HelpText = "Help for ShapeDialog";
  241.     };
  242. };
  243.  
  244. InfoBox ABOUTBOX
  245. {
  246.     Title        = "About";
  247.     Message      = "Help Demonstration Program\n"
  248.                    "(c) 1992-1994 STAR DIVISION";
  249.     Buttons      = WB_OK;
  250.     DefButton    = WB_DEF_OK;
  251.     HelpId       = HELPID_ABOUTBOX;
  252. };
  253.  
  254. String HELPSTATUS
  255. {
  256.     Text = "The StatusBar shows short Help Texts";
  257. };
  258.  
  259. String WINHELP
  260. {
  261.     Text = "Select a menu item";
  262. };
  263.  
  264. String EXTHELP
  265. {
  266.     Text = "Help (Choose topic by clicking)";
  267. };
  268.  
  269. String ABOUTHELP
  270. {
  271.     Text = "Press the OK-Button";
  272. };
  273.