FLTK logo

STR #2939

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 greg.ercolano
07:41 Mar 25, 2013
tabs-honor-when-not-changed.patch
1k
 
 
#2 greg.ercolano
07:57 Mar 25, 2013
related-docs-tweak-for-Fl_Widget.patch
1k
 
 
#3 greg.ercolano
23:18 Mar 27, 2013
tabs.cxx
5k
 
 
#4 greg.ercolano
09:51 Apr 06, 2013
Fl_Tabs-add-when-v6.patch
10k
 
 
#5 greg.ercolano
04:26 Apr 07, 2013
Fl_Tabs-add-when-v7.patch
9k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.