From 8683ea2c810a3d689e436a8d13abbbba50efc4f5 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 23 Apr 2008 14:19:58 +0000 Subject: Adding keyboard shortcut to Fl_Value_Input and Fl_Text_Editor git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6111 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/factory.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fluid/factory.cxx') diff --git a/fluid/factory.cxx b/fluid/factory.cxx index ab1da8781..5e08c4ba1 100644 --- a/fluid/factory.cxx +++ b/fluid/factory.cxx @@ -533,6 +533,7 @@ public: if (w < 50) w = 50; } virtual const char *type_name() {return "Fl_Text_Display";} + int is_text_display() const {return 1;} Fl_Widget *widget(int x,int y,int w,int h) { Fl_Text_Display *myo = new Fl_Text_Display(x,y,w,h); return myo; @@ -573,6 +574,7 @@ public: if (w < 50) w = 50; } virtual const char *type_name() {return "Fl_Text_Editor";} + int is_text_display() const {return 1;} Fl_Widget *widget(int x,int y,int w,int h) { Fl_Text_Editor *myo = new Fl_Text_Editor(x,y,w,h); return myo; @@ -793,6 +795,7 @@ public: virtual const char *type_name() {return "Fl_Value_Input";} int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c); int is_valuator() const {return 1;} + int is_value_input() const {return 1;} Fl_Widget *widget(int x,int y,int w,int h) { Fl_Value_Input *myo = new Fl_Value_Input(x,y,w,h,"value:"); return myo; -- cgit v1.2.3