Peter wrote: > > I want to draw some lines on a widget. > This works ok, but when I want to redraw, the old lines are still there. > > How do I clear or refresh the widget, so I can draw a new set of lines? Call erase on your widget. Or redraw a rectangle yourself. -- Regards, Diez B. Roggisch