From a9a2e89f9840938e1802cf457f887b17ead7376d Mon Sep 17 00:00:00 2001 From: corvid Date: Sun, 3 Jul 2011 19:45:26 +0000 Subject: draw the labels when hidden inputs are shown In fltk-1.3, it doesn't draw inside labels for Fl_Inputs, and it wasn't very nice anyway. Here I move them to the left. Johannes took a look at this change: "The only issue I could think of is that the additional draw_outside_label() would cause excessive redraws for some reason. But I didn't see anything like that during short testing here." --- dw/fltkui.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dw/fltkui.hh') diff --git a/dw/fltkui.hh b/dw/fltkui.hh index daddfb78..a5bddc5a 100644 --- a/dw/fltkui.hh +++ b/dw/fltkui.hh @@ -286,6 +286,7 @@ private: bool password; const char *initText; char *label; + int label_w; bool editable; static void widgetCallback (Fl_Widget *widget, void *data); @@ -301,6 +302,7 @@ public: ~FltkEntryResource (); void sizeRequest (core::Requisition *requisition); + void sizeAllocate (core::Allocation *allocation); const char *getText (); void setText (const char *text); -- cgit v1.2.3