home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1998 February / PCOnline_02_1998.iso / filesbbs / dos / listz21s.exe / LZSET10S.RAR / LZS_INFO.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-25  |  2.6 KB  |  87 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. #ifndef INCLUDED_OPWINDOW_H
  16. #define INCLUDED_OPWINDOW_H
  17. #include <opwindow.h>
  18. #endif
  19.  
  20. #ifndef INCLUDED_OPCRT_H
  21. #define INCLUDED_OPCRT_H
  22. #include <opcrt.h>
  23. #endif
  24.  
  25. #ifndef INCLUDED_OPCOLOR_H
  26. #define INCLUDED_OPCOLOR_H
  27. #include <opcolor.h>
  28. #endif
  29.  
  30. #ifndef INCLUDED_STDIO_H
  31. #define INCLUDED_STDIO_H
  32. #include <stdio.h>
  33. #endif
  34.  
  35. #include "lzs_vers.h"
  36.  
  37. extern FrameArray lz_FrameType;
  38. extern ColorSet   lz_Colors;
  39.  
  40. // display information banner
  41. void
  42. DisplayBanner()
  43. {
  44.     RawWindow  info;
  45.     long       options = wBordered+wClear+wUserContents+wCoversOnDemand;
  46.     word       left = 6, right = 74, top = 5, bottom = 20;
  47.     word       width = right - left + 1;
  48.     char      *text[7] =
  49.     {
  50.         "                                                    ",
  51.         "Copyright (c) 1997 Branislav L. Slantchev (gargoyle)",
  52.         "A fine freeware product of Silicon Creations, Inc.",
  53.         "Developed using Borland C++ 3.1 and Object Professional v1.10",
  54.         "This release version compiled on " __DATE__ " at " __TIME__,
  55.         "Made in the USA by illegal immigrants!",
  56.         "THE BLOODY BULGARIAN STRIKES AGAIN!",
  57.     };
  58.  
  59.     sprintf(text[0], "lzSetup Version %s", __VER__);
  60.     if( info.InitCustom(left, top, right, bottom, lz_Colors, options) )
  61.     {
  62.         CursorType cursor = ClassifyCursorType();
  63.         SetBlink(FALSE);
  64.         info.wFrame.SetFrameType(lz_FrameType);
  65.         info.wFrame.AddHeader(" Information ", heTR);
  66.         info.EnableExplosions(20);
  67.         info.wFrame.AddShadow(shBR, shSeeThru);
  68.         info.Draw();
  69.         info.wFastCenter(text[0], 2, YellowOnBlack);
  70.         info.wFastCenter(text[1], 4, WhiteOnBlack);
  71.         info.wFastCenter(text[2], 5, CyanOnBlack);
  72.         info.wFastFill(width, ' ', 7, 1, 0xFF);
  73.         info.wFastFill(width, ' ', 8, 1, BlackOnGreen);
  74.         info.wFastCenter(text[6], 8, BlackOnGreen);
  75.         info.wFastFill(width, ' ', 9, 1, BlackOnRed);
  76.         info.wFastCenter(text[3], 12, CyanOnBlack);
  77.         info.wFastCenter(text[4], 13, CyanOnBlack);
  78.         info.wFastCenter(text[5], 15, WhiteOnBlack);
  79.         HiddenCursor();
  80.         ReadKey();
  81.         info.Erase();
  82.         info.Done();
  83.         SetBlink(TRUE);
  84.         SetCursorType(cursor);
  85.     }
  86. }
  87.