| [ Return to Bugs & Features | Roadmap 1.3 | Post Text | Post File | SVN ⇄ GIT | Prev | Next ]
STR #3220
Application: | FLTK Library |
Status: | 3 - Active |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | Can select multiple items in Fl_Tree even in FL_TREE_SELECT_SINGLE mode |
Version: | 1.3-current |
Created By: | Belgiansteve |
Assigned To: | greg.ercolano |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post Text ]
|
#1 | Belgiansteve 15:42 Apr 15, 2015 |
| Hi everyone,
With the following code, I can select multiple items in Fl_Tree, even in FL_TREE_SELECT_SINGLE mode.
#include <FL/Fl_Window.H> #include <FL/Fl_Tree.H>
int main(int nargs, char** argv) { Fl_Window* pwnd = new Fl_Window(300, 300, "Hello"); Fl_Tree* ptree = new Fl_Tree(0, 0, 300, 300); ptree->selectmode(FL_TREE_SELECT_SINGLE); Fl_Tree_Item* p1 = ptree->add("item1"); Fl_Tree_Item* p2 = ptree->add("item2"); ptree->end(); pwnd->end();
ptree->select(p1); ptree->select(p2);
pwnd->show();
return Fl::run(); }
It looks like Fl_Tree::select(Fl_Tree_Item*) doesn't care about the selection mode. Is this a bug?
Thanks,
Steve | |
|
#2 | greg.ercolano 12:14 Mar 07, 2016 |
| Mmm, yep, should be fixed I'd say. | |
|
#3 | greg.ercolano 12:36 Mar 07, 2016 |
| Assigning to me, set subsystem to core lib. | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |