I found my mistake (so it's not a bug):

> In the callback method I receive the clicked item by:
> Widget* selected(browser->goto_index(browser->value()));

goto_index(int) and value() are only working for non-hierarchical browsers and 
thus always refer to the top level.

This does the job in my hierarchical browser:
const int level(brSender->current_level());
const int* indexes(brSender->current_index());
Widget* selected(brSender->goto_index(indexes, level));
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to