From f7fc073ac0de5326cffee25fd3e94c4d0b385136 Mon Sep 17 00:00:00 2001 From: Jorge Arellano Cid Date: Mon, 5 Jan 2009 17:12:43 -0300 Subject: Added a right-click menu to the form submit button (allows to show hiddens) --- dw/fltkui.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dw/fltkui.hh') diff --git a/dw/fltkui.hh b/dw/fltkui.hh index 4de99d27..3d19fc63 100644 --- a/dw/fltkui.hh +++ b/dw/fltkui.hh @@ -195,6 +195,8 @@ protected: virtual ::fltk::Widget *createNewWidget (core::Allocation *allocation) = 0; void setWidgetStyle (::fltk::Widget *widget, core::style::Style *style); + void setDisplayed (bool displayed); + bool displayed(); public: ~FltkResource (); @@ -298,15 +300,18 @@ private: int maxLength; bool password; const char *initText; + char *label; bool editable; static void widgetCallback (::fltk::Widget *widget, void *data); + void setDisplayed (bool displayed); protected: ::fltk::Widget *createNewWidget (core::Allocation *allocation); public: - FltkEntryResource (FltkPlatform *platform, int maxLength, bool password); + FltkEntryResource (FltkPlatform *platform, int maxLength, bool password, + const char *label); ~FltkEntryResource (); void sizeRequest (core::Requisition *requisition); -- cgit v1.2.3