00001
00002
00003
00004 #ifndef __ORADIOV_H
00005 #define __ORADIOV_H
00006
00007 #include <OVGA.H>
00008 #include <OFONT.H>
00009
00010
00011
00013
00014 public:
00015 short radio_button_x1, radio_button_y1,
00016 radio_button_x2, radio_button_y2;
00017 short radio_button_x;
00018 short radio_button_width, radio_button_height;
00019 short paragraph_width, paragraph_height;
00020 int option_num;
00021 int *sel_num;
00022 int button_color;
00023 char **option_desc;
00024 short *desc_y;
00025 short *radio_button_bitmap;
00026 Font *font_ptr;
00027 char init_flag;
00028
00029 private:
00030 void fill(short,short,int);
00031 void circle(short,short,int,int,char);
00032
00033 public:
00034 RadioButtonVert();
00035 ~RadioButtonVert();
00036 void init(int,int,int,int,int,int*,char**,int=vga_back.color_border);
00037 void deinit();
00038 void paint();
00039 void refresh();
00040 int detect();
00041 void set_font(Font *fontPtr) { font_ptr = fontPtr; }
00042
00043 };
00044
00045
00046 #endif