/*--------------------------------------------------------------------------*
* Program: MENUDEMO.CPP
* Author: Michael P. Redlich
* Date/Time: 8-11-96 5:17:42 pm
* Description: This program demonstrates bbMenu.
*--------------------------------------------------------------------------*/
class bbMenu
{
int x;
int y;
int w;
int j;
struct entryType
{
int x;
int y;
int choiceNo;
const char *strbuf;
entryType *prev;
entryType *next;
int getChoice(void) const;
void setOption(int) const;
entryType(entryType *,entryType *,int,int,int,const char *);
};
entryType *firstEntry;
entryType *curEntry;
int getKey(void) const;
void setMenu(void);
public:
bbMenu(int,int,int);
~bbMenu(void);
int getChoice(void);
void addPrompt(const char *);
};
.....
void main(void)
{
setMainColor();
clrscr();
_setcursortype(_NOCURSOR);
mainMenu();
}
void setMainColor(void)
{
textbackground(1);
textcolor(15);
}
...............