zlc53 wrote:
> i use postion function , but can't auto redraw

        That's pretty terse, but I'm guessing you're trying to
        re-position a widget with w->position(x,y), but the widget
        is not redrawing or not redrawing correctly.

        When you move a widget, you have to tell the parent group
        the child was moved by calling init_sizes(), eg:
        
http://fltk.org/doc-2.0/html/classfltk_1_1Group.html#dde626fecc1b50fa9f8d7f8a23fcff49

        If you are having trouble with the change not redrawing
        correctly, you may also need to call the parent widget's
        redraw() function. So in all:

                w->position(newx, newy);
                w->parent()->init_sizes();      // or specify the parent group, 
eg. group->init_sizes()
                w->window()->redraw();
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to