On 16.08.2012, at 11:00, Daniel <[email protected]> wrote:

> 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));

Just saw your post in this mailing list. This list if for our bug tracking 
system only. Please use general.fltk instead. You'll get help a lot faster.

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to