Slick Dealer wrote:
> I am using a resizable window but would like to disable resizing of a Fl_Tree 
> inside the window. Is there any way to disable Fl_tree from resizing?

        Shouldn't matter if it's a tree or any other FLTK widget, the
        resizing behavior should be governed by the rules in this article:
        http://fltk.org/articles.php?L415+I20+T+P1+Qresize

        To completely disable resizing width AND height, just put the tree
        into an Fl_Group and set the group's resizable to 0.
        This will prevent the children of that group from resizing.

        Or, make an invisible box using the techniques described above
        to disable resizing of the tree in the one direction you want.

        To allow specific behavior for only certain widgets, use groups
        to either enclose widgets to protect them from resizing (by setting
        the group's resizable to 0), or or to limit a resize box's influence
        by putting a resize box within the group.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to