diff options
Diffstat (limited to 'dw/fltkui.cc')
-rw-r--r-- | dw/fltkui.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc index 84e0b730..fb6e61e1 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -47,8 +47,7 @@ */ class CustInput2 : public Fl_Input { public: - CustInput2 (int x, int y, int w, int h, const char* l=0) : - Fl_Input(x,y,w,h,l) { placeholder = NULL; showing_placeholder = false; }; + CustInput2 (int x, int y, int w, int h, const char* l=0); ~CustInput2 () { if (placeholder) free(placeholder); }; void set_placeholder(const char *str); int show_placeholder(); @@ -66,6 +65,14 @@ private: int usual_type; }; +CustInput2::CustInput2 (int x, int y, int w, int h, const char* l) : + Fl_Input(x,y,w,h,l) +{ + placeholder = NULL; + showing_placeholder = false; + usual_color = FL_BLACK; /* just init until widget style is set */ +}; + /* * Show normal text. */ |