Crosshairs and menus

CrossHairs can be added to any window by selecting the appropriate control option(s) For instance:

    var ctrl_opts =  ControlBox.CROSSV | ControlBox.CROSSH | ControlBox.RESET;
    main_frame = new Frame (
                  0, 0, 400, 280,
                  "Title: Sample Framed Window",
                   false, a_buttons, ctrl_opts, true, true, true, main_menu
                 );
      

An array of menuitems can be built up and added to the frame:

      var help_menu = new Array();
      help_menu[0] = new MenuItem (MenuItem.ITEM, 130, 15, "Help", help_button);
      help_menu[1] = new MenuItem (MenuItem.ITEM, 130, 15, "About CGUI", 
                            "Button3('CGUI')");
      ...
      main_menu[0] = new MenuItem (MenuItem.MAIN, 70, 15, "View", null, 
                            view_menu);