On 08/03/12 13:05, Matthias Melcher wrote:
> Have you guys tried to simply put it inside an Fl_Scroll?

        An interesting sugg, it might work for horizontal panning.

        Not for vertical panning though, since optimizations cause the
        tree never to draw itself completely.

        But perhaps yes, if you made an Fl_Scroll, and then dropped
        an overly wide tree into it, the horiz scroll would probably
        let you pan it.

        Guessing how wide to make the tree would be the tricky part,
        since the Fl_Scroll's horiz bar will try to scroll the entire
        width of the tree's width.

        I'm guessing there might be trouble at the lower right corner
        where the appearance of the Fl_Scroll horiz might interfere
        with the inner tree's vert scrollbar, but you can probably size
        the Fl_Scroll to be Fl::scrollbar_size() pixels larger than the tree
        to avoid that.

        Anyway, I will eventually get around to taking another pass at
        Fl_Tree. Hust not before Siggraph I don't think (which is next week)
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to