From 8826dca1066361b474139bcc5aeed2e3a5246ed0 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 5 Jan 2023 13:51:30 +0100 Subject: Add close buttons for individual tabs in Fl_Tabs (#628) Add close buttons for Fl_Tabs Introducing callback reasons FLUID shows all FL_WHEN_... options Adding Fl_Tabs overflow types Improved test/tabs to show new features --- FL/Fl_Button.H | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'FL/Fl_Button.H') diff --git a/FL/Fl_Button.H b/FL/Fl_Button.H index 38d804070..14e515d1b 100644 --- a/FL/Fl_Button.H +++ b/FL/Fl_Button.H @@ -65,10 +65,15 @@ class Fl_Widget_Tracker; being \c FL_WHEN_RELEASE: \li \c 0: The callback is not done, instead changed() is turned on. \li \c FL_WHEN_RELEASE: The callback is done after the user successfully - clicks the button, or when a shortcut is typed. + clicks the button, or when a shortcut is typed. The reason is + \p FL_REASON_RELEASED. \li \c FL_WHEN_CHANGED: The callback is done each time the value() changes (when the user pushes and releases the button, and as the mouse is - dragged around in and out of the button). + dragged around in and out of the button). The reason is set to + \p FL_REASON_CHANGED + \li \c FL_WHEN_NOT_CHANGED: The callback is done when the mouse button is + released, but the value did not changed. The reason is set to + \p FL_REASON_SELECTED */ class FL_EXPORT Fl_Button : public Fl_Widget { -- cgit v1.2.3