home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1998 February / PCOnline_02_1998.iso / filesbbs / dos / listz21s.exe / LZSET10S.RAR / LZS_MENU.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-25  |  7.5 KB  |  137 lines

  1. /*
  2.  * This file is part of LZSETUP (Configuration program for Listerz)
  3.  *
  4.  * Copyright (c) 1997 Branislav L. Slantchev (gargoyle)
  5.  * A fine product of Silicon Creations, Inc.
  6.  *
  7.  * This file is released under the terms and conditions of the GNU
  8.  * General Public License Version 2. The full text of the license is
  9.  * supplied in the Copying.Doc file included with this archive. This
  10.  * free software comes with absolutely no warranty, as outlined in the
  11.  * licensing text. You are not allowed to remove this copyright notice.
  12.  *
  13.  * Contact: Branislav L. Slantchev at 73023.262@compuserve.com
  14. */
  15. #include <stdlib.h>
  16. #include <opdefine.h>
  17. #include <opcrt.h>
  18. #include <opstring.h>
  19. #include <opcolor.h>
  20. #include <opmenu.h>
  21. #include "lzs_cmds.h"
  22.  
  23. extern FrameArray lz_FrameType;
  24.  
  25. word InitMenu(Menu &M, ColorSet &Colors)
  26.   //-Initialize menu system generated by MAKEMENU
  27. {
  28.     //Frame #defines
  29.     if( !M.InitCustom(6, 5, 29, 13, Colors,
  30.                       wBordered+wClear+wUserContents+wCoversOnDemand,
  31.                       Vertical))
  32.       return M.InitStatus;
  33.  
  34.     M.mnOptionsOn(mnAlphaMatch+mnSelectOnMatch+mnAllowPending+mnAllHotSpots+
  35.                   mnUseItemForTopic);
  36.     M.mnOptionsOff(mnArrowSelect+mnPopOnSelect+mnSelectOnClick+mnAltMatch);
  37.     M.wFrame.SetFrameType(lz_FrameType);
  38.     M.EnableExplosions(20);
  39.     M.AddShadow(shBR, shSeeThru);
  40.     M.AddHeader(" Main ", heTR);
  41.     M.SetSelectMarker(" ", " ");
  42.     M.AddItemHelp("Screen Layout", 2, 0, miScreen1, "Choose positions for output against the background file");
  43.       M.AddFramedSubMenu(23, 8, 41, 11, Vertical, lz_FrameType);
  44.       M.EnableExplosions(20);
  45.       M.AddShadow(shBR, shSeeThru);
  46.       M.AddHeader(" Screens ", heTR);
  47.       M.SetSelectMarker(" ", " ");
  48.       M.AddItemHelp("Area Selection", 2, 0, miMainScreen, "Layout control for the main selection screen");
  49.       M.AddItemHelp("Progress Report", 3, 0, miProcScreen, "Layout control for the progress report screen");
  50.       M.ItemsDone();
  51.     M.AddItemHelp("Options and Colors", 3, 0, miOptions4, "Choose display characters and colors for the output");
  52.       M.AddFramedSubMenu(21, 9, 41, 15, Vertical, lz_FrameType);
  53.       M.EnableExplosions(20);
  54.       M.AddShadow(shBR, shSeeThru);
  55.       M.AddHeader(" Settings ", heTR);
  56.       M.SetSelectMarker(" ", " ");
  57.       M.AddItemHelp("Character Symbols", 2, 0, miCharacter5, "Select various status character symbols");
  58.         M.AddFramedSubMenu(31, 12, 52, 18, Vertical, lz_FrameType);
  59.         M.EnableExplosions(20);
  60.         M.AddShadow(shBR, shSeeThru);
  61.         M.AddHeader(" Symbols ", heTR);
  62.         M.SetSelectMarker(" ", " ");
  63.         M.AddItemHelp("Tag Character", 2, 0, miTagSymbol, "Select symbol to use to mark a tagged item");
  64.         M.AddItemHelp("Progbar Foreground", 3, 9, miPbarFgChar, "Symbol used by the progress bar to show current status (Current Area)");
  65.         M.AddItemHelp("Progbar Background", 4, 9, miPbarBgChar, "Symbol used by the progress bar to fill the area (Current Area)");
  66.         M.AddItemHelp("Totals Progbar Fg",  5, 15, miPbarTotalFgChar, "Symbol used by the progress bar to show current status (Total Areas)");
  67.         M.AddItemHelp("Totals Progbar Bg",  6, 15, miPbarTotalBgChar, "Symbol used by the progress bar to fill the area (Total Areas)");
  68.         M.ItemsDone();
  69.       M.AddItemHelp("Selection List", 3, 0, miSelection6, "Select colors for the main screen area list");
  70.         M.AddFramedSubMenu(34, 13, 53, 18, Vertical, lz_FrameType);
  71.         M.EnableExplosions(20);
  72.         M.AddShadow(shBR, shSeeThru);
  73.         M.AddHeader(" Selection List ", heTR);
  74.         M.SetSelectMarker(" ", " ");
  75.         M.AddItemHelp("Area Name List", 2, 0, miListAreaName, "Color for the area name in the list");
  76.         M.AddItemHelp("Selection Bar", 3, 0, miListSelectBar, "Color for the highlight selection bar");
  77.         M.AddItemHelp("Tag Symbol Color", 4, 0, miListTag, "Color for the tag symbol in the list");
  78.         M.AddItemHelp("Tag Hilite Color", 5, 4, miListTagHilite, "Color for the tag symbol when the selection bar is over the item");
  79.         M.ItemsDone();
  80.       M.AddItemHelp("Command Bar", 4, 1, miCommand11, "Select colors for the command bar area");
  81.         M.AddFramedSubMenu(31, 14, 53, 21, Vertical, lz_FrameType);
  82.         M.EnableExplosions(20);
  83.         M.AddShadow(shBR, shSeeThru);
  84.         M.AddHeader(" Command Bar ", heTR);
  85.         M.SetSelectMarker(" ", " ");
  86.         M.AddItemHelp("Active Foreground", 2, 7, miCbarActiveFg, "Item text color when the command bar is active");
  87.         M.AddItemHelp("Active Background", 3, 7, miCbarActiveBg, "Color between items when the command bar is active");
  88.         M.AddItemHelp("Hotkey Highlight", 4, 0, miCbarHotkey, "Color for the hotkey in the command bar");
  89.         M.AddItemHelp("Selection Bar", 5, 0, miCbarHilite, "Color for the selected item in the command bar");
  90.         M.AddItemHelp("Disabled Foreground", 6, 10, miCbarOffFg, "Item text color when the command bar is disabled");
  91.         M.AddItemHelp("Disabled Background", 7, 10, miCbarOffBg, "Color between items when the command bar is disabled");
  92.         M.ItemsDone();
  93.       M.AddItemHelp("Progress Screen", 5, 0, miProgress18, "Select colors for the process report screen");
  94.         M.AddFramedSubMenu(34, 15, 49, 19, Vertical, lz_FrameType);
  95.         M.EnableExplosions(20);
  96.         M.AddShadow(shBR, shSeeThru);
  97.         M.AddHeader(" Progress ", heTR);
  98.         M.SetSelectMarker(" ", " ");
  99.         M.AddItemHelp("Text Color", 2, 0, miProcText, "Color for the area names displayed in the progress list");
  100.         M.AddItemHelp("Digits Color", 3, 0, miProcDigits, "Color for all numeric information in the progress reports");
  101.         M.AddItemHelp("Active Area", 4, 0, miProcAreaName, "Color for the name of area currently being processed");
  102.         M.ItemsDone();
  103.       M.AddItemHelp("Progress Bars", 6, 9, miProgress22, "Select colors for the progress bars");
  104.         M.AddFramedSubMenu(32, 16, 53, 21, Vertical, lz_FrameType);
  105.         M.EnableExplosions(20);
  106.         M.AddShadow(shBR, shSeeThru);
  107.         M.AddHeader(" Progress Bars ", heTR);
  108.         M.SetSelectMarker(" ", " ");
  109.         M.AddItemHelp("Current Foreground", 2, 8, miPbarFg, "Color for the progress already being completed (Current Area)");
  110.         M.AddItemHelp("Current Background", 3, 8, miPbarBg, "Color for the area signifying the total job amount (Current Area)");
  111.         M.AddItemHelp("Total Foreground", 4, 7, miPbarTotalFg, "Color for the progress already being completed (All Areas)");
  112.         M.AddItemHelp("Total Background", 5, 7, miPbarTotalBg, "Color for the area signifying the total job amount (All Areas)");
  113.         M.ItemsDone();
  114.       M.ItemsDone();
  115.     M.AddItemHelp("Compression Programs", 4, 0, miCompression, "Options for the compressions programs to use");
  116.       M.AddFramedSubMenu(22, 10, 50, 16, Vertical, lz_FrameType);
  117.       M.EnableExplosions(20);
  118.       M.AddShadow(shBR, shSeeThru);
  119.       M.AddHeader(" Compressors ", heTR);
  120.       M.SetSelectMarker(" ", " ");
  121.       M.AddItemHelp("ZIP (PKWARE, Inc.)", 2, 0, miZIP, "Set the options for the ZIP format");
  122.       M.AddItemHelp("RAR (Eugene Roshal)", 3, 0, miRAR, "Set the options for the RAR format");
  123.       M.AddItemHelp("ARJ (Robert Jung)", 4, 0, miARJ, "Set the options for the ARJ format");
  124.       M.AddItemHelp("LHA (Haruyashu Yoshizaki)", 5, 0, miLHA, "Set the options for the LHA format");
  125.       M.AddItemHelp("ZOO (Rahul Dhesi)", 6, 1, miZOO, "Set the options for the ZOO format");
  126.       M.ItemsDone();
  127.     M.AddItemHelp("File Locations", 5, 0, miFileLocations, "The system path and various file names");
  128.     M.AddItemHelp("Useron Support", 6, 0, miUseron, "Options for the online user support (multinode systems)");
  129.     M.AddItemHelp("Information", 7, 0, miInformation, "Information about this program");
  130.     M.AddItemHelp("Exit Program", 8, 1, miExit, "Exit the program (prompts if data needs to be saved)");
  131.     M.ItemsDone();
  132.  
  133.     if (M.RawError())      M.Done();
  134.     return M.RawError();
  135. }
  136.  
  137.