home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / hl10osrc.lzh / Include / ScrollPrompt.h < prev    next >
Text File  |  1994-04-23  |  1KB  |  45 lines

  1. /* -*- Mode: C -*- */
  2. /* ScrollPrompt.h - ScrollWindow with prompt
  3.  * Created by Robert Heller on Fri Dec 13 23:10:51 1991
  4.  *
  5.  * ------------------------------------------------------------------
  6.  * Home Libarian by Deepwoods Software
  7.  * Common Header Files
  8.  * ------------------------------------------------------------------
  9.  * Modification History:
  10.  * ------------------------------------------------------------------
  11.  * Contents:
  12.  * ------------------------------------------------------------------
  13.  * 
  14.  * 
  15.  * Copyright (c) 1991,1992 by Robert heller (D/B/A Deepwoods Software)
  16.  *        All Rights Reserved
  17.  * 
  18.  */
  19.  
  20. #ifndef _SCROLLPT_
  21. #define _SCROLLPT_
  22. #include <stream.h>
  23. #include <common.h>
  24. #include <ctype.h>
  25. #include <Terminal.h>
  26.  
  27. class ScrollPrompt {
  28.     char Title[80];
  29.     int  ScrollRow;
  30.     int  ScrollCol;
  31.     int  ScrollWidth;
  32.     int  ScrollHeight;
  33.     int  PromptRow;
  34. public:
  35.          ScrollPrompt(const char* title,int row=3,int col=0,int width=80,
  36.               int height=15,int prow=20)
  37.              {strcpy(Title,title);ScrollRow=row;ScrollCol=col;
  38.          ScrollWidth=width;ScrollHeight=height;PromptRow=prow;}
  39.     int Scroll(const char* scrolltext,const char* prompt,
  40.              char* answer,int answersize);
  41.     friend class Terminal;
  42. };
  43.  
  44. #endif
  45.