Hi Stuart,
> The application works fine when I use add() to fill the browser. Because I
> can have up to 10,000 rows I thought I would try overriding list. It is a
> multiselect browser, so I wrote a class overridging children, child and
> set-flags (using the documenation in StringHierarchy as a template).
>
> I sort and do functions such as select all, invert selection etc on the data
> class and it shows fine in the browser.
>
> However when I double clikc a row it segfaults. I have put event_clicks(0)
> into my overwritten and this nearly always stops the crash. However I lose
> my double click action. I have tried setting a double click block before
> setting event_clicks(o) and acting on the flag in the call back but then it
> does respond until I go to a new (and thus precipitate a new call back fro it
> to act). I supposed I could a function in my overriden class but this is
> becoming pretty ugly and spaghetti like.
>
> Even more worrying while the event_clicks(0) stuff stops most crashes I still
> get occasional crahses and have no idea why. It seems that events must be
> being calling on zero'd widgets or something. Any help would be appreciated.
Setting event_clicks(0) won't solve all these problems, I don't think. 2.0 can
triple-click, so occasionally it might interpret your clicks as a series of
tripleclicks, which will set event_clicks_ to 2 (and thus double click).
However, it sounds like your problem is most likely in your overridden class.
Could you please post a minimal compilable example that exhibits the problem
(preferably without the event_clicks() kludges - so we can try to get this code
as nice as it should be!), and I'll see what I can do?
Regards,
Ben
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs