Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

OBOX.H Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

OBOX.H

Go to the documentation of this file.
00001 //Filename    : OBOX.H
00002 //Description : Header file of button object
00003 
00004 #ifndef __OBOX_H
00005 #define __OBOX_H
00006 
00007 #ifndef __ALL_H
00008 #include <ALL.H>
00009 #endif
00010 
00011 #ifndef __OBUTTON_H
00012 #include <OBUTTON.H>
00013 #endif
00014 
00015 //------- constant for arrow box ----------//
00016 
00017 enum {
00018     ARROW_BOX_WIDTH        = 390,
00019     ARROW_BOX_X_MARGIN     = 15,
00020     ARROW_BOX_Y_MARGIN     = 15,
00021     ARROW_BOX_TITLE_HEIGHT = 20,
00022     ARROW_BOX_LINE_SPACE   = 4
00023 };
00024 
00025 //--------- Define class Box ------------//
00026 
00029 class Box {
00030 public:
00031     int  box_x1, box_y1, box_x2, box_y2;
00032     int  arrow_x, arrow_y;
00033     int  save_scr_flag;
00034     int  progress_val;
00035     static char opened_flag;
00036 
00037 public:
00038     // ready to use one-step call functions
00039 
00040     int  ask(char*, char* =NULL, char* =NULL, int= -1, int= -1);
00041     void msg(char* msgStr, int enableTimeOut=1, int x1= -1, int y1= -1);
00042     //  void progress(char* msgStr, int progressVal,int enableTimeOut=1, int x1= -1, int y1= -1);
00043     void progress(int progressVal,int enableTimeOut=1, int x1= -1, int y1= -1);
00044     void progress_update(int progressVal,int enableTimeOut=1, int x1= -1, int y1= -1);
00045     void print(char*, ... );
00046     void tell(char*,int= -1, int= -1);
00047 
00048     // lower level box control functions
00049 
00050     void open(int,int,int,int,int=1);
00051     void open(int,int,int=1);
00052     void paint(int);
00053     void close();
00054 
00055     void calc_size(char*,int,int= -1, int= -1);
00056 
00057     int  ask_button(char* =NULL,char* =NULL,int=1);
00058     void ask_button(Button&,Button&,char* =NULL,char* =NULL);
00059     void ok_button(int=1);
00060 
00061     // arrow box
00062 
00063     void arrow_box(char*, char* =NULL, int=1);
00064     void close_arrow_box();
00065     void calc_arrow_box(char*, int, int, int=0);
00066     void calc_arrow_box(int, int, int, int);
00067     void draw_arrow();
00068 };
00069 
00070 extern Box box;
00071 
00072 //----------------------------------------------//
00073 #endif

Generated on Fri Aug 23 01:37:16 2002 for VirtualU by doxygen1.2.17