From 537f8744171ba2de8713f03a1248399eca42ca23 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Thu, 24 Dec 2009 18:25:33 -0600 Subject: [PATCH] Fl_Sometimes_Input: Draw a box. --- FL/Fl_Sometimes_Input.H | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FL/Fl_Sometimes_Input.H b/FL/Fl_Sometimes_Input.H index 7e9f7bc..a26e0a5 100644 --- a/FL/Fl_Sometimes_Input.H +++ b/FL/Fl_Sometimes_Input.H @@ -17,12 +17,13 @@ /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /*******************************************************************************/ - +#pragma once /* Just like an Fl_Input, except that when not being edited it * displays just like a label. */ #include +#include class Fl_Sometimes_Input : public Fl_Input { @@ -42,6 +43,7 @@ public: Fl_Input::draw(); else { + fl_draw_box( FL_ROUNDED_BOX, x(), y(), w(), h(), color() ); fl_color( FL_FOREGROUND_COLOR /* textcolor() */ ); fl_font( textfont(), textsize() ); fl_draw( value(), x(), y(), w(), h(), FL_ALIGN_CENTER );