00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _FL_NUMERIC_INPUT_H_
00023 #define _FL_NUMERIC_INPUT_H_
00024
00025 #include "Fl_Input.h"
00026 #include "Fl_Flags.h"
00027
00029 class FL_API Fl_Numeric_Input : public Fl_Input {
00030 public:
00032 Fl_Numeric_Input(int x,int y, int w,int h,const char* l = 0)
00033 : Fl_Input(x,y,w,h,l) {when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE); text_align(FL_ALIGN_RIGHT);}
00034
00036 Fl_Numeric_Input(const char* l = 0,int layout_size=30,Fl_Align layout_al=FL_ALIGN_TOP,int label_w=100)
00037 : Fl_Input(l,layout_size,layout_al,label_w) {when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE); text_align(FL_ALIGN_RIGHT);}
00038
00039 void value(double);
00040 void value(int);
00041 void value(const char* s) { Fl_Input::value(s); }
00042 const char* value() const { return Fl_Input::value(); }
00043
00044 virtual int handle(int);
00045
00046 protected:
00047 int handle_arrow(int);
00048 };
00049
00050 #endif