On 17.07.2011 08:38, Stuart Galloway wrote:
> The problem is that I have defined my own class to hold data for an fltk2
> browser.
> have assigned the list to the browser.
> I fill the list from a data base query which then shows in the list.
I agree with Ben that it is almost impossible to see what is going on
in your code w/o a complete and compilable example program, and I don't
know fltk2 well enough to be of any help with the internals, but I seem
to have found a glitch in your code...
...
> My ugly debugging code follows :
>
>
> fltk::Widget* BrowserList::child(const fltk::Menu*, const int* indexes, int
> level) {
> unsigned int row;
...
> row = indexes[level]; //The index of the tree is the index into my
> data vector
>
> if (row< 0 and row>= size()) return 0; //make sure the vector is in
> range
Shouldn't this be "or" instead of "and" ???
Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk