Hi, I have an application that pops up a window on double clicking on a browser row. If am using fltk2 (latest download a few days ago) and mingw on a windows 7 computer.
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. _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
