| [ Return to Bugs & Features | Roadmap 1.3 | SVN ⇄ GIT ]
STR #2939
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 3 - Moderate, e.g. unable to compile the software |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | Fl_Tabs not honoring when(FL_WHEN_NOT_CHANGED) |
Version: | 1.3.2 |
Created By: | greg.ercolano |
Assigned To: | greg.ercolano |
Fix Version: | 1.3-current (SVN: v9867) |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | greg.ercolano 07:41 Mar 25, 2013 |
| testalucida posted on fltk.general today: using Fl_Tabs, wanting to make a single tab group, and wants to receive callbacks whenever the one tab is clicked.
I was going to offer setting when(FL_WHEN_NOT_CHANGED) should do this, but does not.
Suggesting a patch here to fix. | |
|
#2 | greg.ercolano 07:57 Mar 25, 2013 |
| Also attaching a patch suggestion for Fl_Widget's when() docs to elaborate on the use of FL_WHEN_NOT_CHANGED. | |
|
#3 | greg.ercolano 19:38 Mar 25, 2013 |
| Taking ownership, fixed subject typo.
Put an RFC on fltk.development to see if implementing all the "when()" behavior of radio buttons makes sense here. | |
|
#4 | greg.ercolano 23:18 Mar 27, 2013 |
| Attaching a test program, when.cxx, to test the when() behavior of tabs vs. radio buttons vs. hold + multi browser.
Also, used this program to generate this table of when() behavior which will be useful for perhaps fixing not only Fl_Tabs, but bugs in existing widgets: http://seriss.com/people/erco/fltk/when-behavior-03-26-2013.html
This test should probably be integrated into the unittests to check the when() behavior of all widgets. (Instead of using the tty, the unittest could probably pop open an Fl_Text_Display widget on first callback, and scroll realtime callback msgs in that) | |
|
#5 | greg.ercolano 23:54 Mar 27, 2013 |
| Meh, forgot to rename the test program; uploaded as tabs.cxx instead of when.cxx. | |
|
#6 | greg.ercolano 09:51 Apr 06, 2013 |
| Suggesting the attached "Fl_Tabs-add-when-v6.patch" which modifies Fl_Tabs to handle when().
Includes doxygen docs that describe the various combos of when() flags supported.
Putting this here so I can remember where I left off if I get pulled into other activities for a time. Want to do a little more testing of this before commit. | |
|
#7 | greg.ercolano 04:26 Apr 07, 2013 |
| Attaching a v7 patch; simplified the docs a bit.
Also added an Fl_Tabs code example while I was at it (which should be committed separately) | |
|
#8 | greg.ercolano 13:19 Apr 08, 2013 |
| Fixed in Subversion repository.
Leaving this open to allow for comments before closing. | |
[ Return to Bugs & Features ]
|
| |