diff options
-rw-r--r-- | dw/fltkui.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc index 846ef87a..51523b95 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -95,10 +95,14 @@ int CustInput2::show_normal(const char *str) */ int CustInput2::show_placeholder() { + int ret; + showing_placeholder = true; Fl_Input::textcolor(fltkui_dimmed(usual_color, color())); Fl_Input::input_type(FL_NORMAL_INPUT); - return Fl_Input::value(placeholder); + ret = Fl_Input::value(placeholder); + position(0); + return ret; } /* |