Category : C++ Source Code
Archive   : OMEGA2.ZIP
Filename : OMMENU.HPP

 
Output of file : OMMENU.HPP contained in archive : OMEGA2.ZIP
//
// *************************************************************************
// * *
// * OMEGA C++ Windowing Class Library *
// * ================================= *
// * *
// * Copyright 1991,92 Tom Clancy *
// * Submitted to the public domain, April 1992 *
// * *
// *************************************************************************
// * *
// * Popup Menu Class Object *
// * *
// *************************************************************************
//

#ifndef _OMMENU
#define _OMMENU
#endif

#ifndef _OMWINDOW
#include "omwin.hpp"
#endif



class oMenu : public oWindow {

char *picks[50];
char hotlist[50];
int Current;
int Picked;
int Numops;
int Nfg, Hfg, Hbk, Pfg;
int Hid;
int Gap,Topgap;
int mWid;

int largestpick();
void highlight(int i);
void unhighlight(int i);
void makeline(int i);
void writeoption(int i, int fg, int bk);
void addtohotlist(int i);
int seperator(int i);

public:
oMenu();
~oMenu();


void setmenu(int x, int y, int fg, int bk, int nfg, int hfg, int hbk,
int pfg, int style);


void addoption(char *s);
void snaptocenter();
void openmenu();
void closemenu();

void setgap(int g) {Gap=g;}
void settbgap(int g) {Topgap=g;}
int getpick() {return Picked;}

int withinbounds(int x, int y);
int withinbounds(int c, int x, int y);

void display_info();

int handle_mouse_event();
int handle_key_event();

void run();
int gomenu();

};



  3 Responses to “Category : C++ Source Code
Archive   : OMEGA2.ZIP
Filename : OMMENU.HPP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/