[fpc-pascal]RE: force redraw on hscale
Marc Santhoff
M.Santhoff at t-online.de
Tue Apr 27 19:06:12 CEST 2004
Am Di, den 27.04.2004 schrieb Jeff Pohlmeyer um 07:58:
> > My question: how can I force a redraw on selected
> > widgets or the whole window when needed?
>
> Maybe this will help:
>
> procedure UpdateWidget(w:pGtkWidget);
> var
> update_rect: tGdkRectangle;
> begin
> update_rect.x:=0;
> update_rect.y:=0;
> update_rect.width:=w^.allocation.width;
> update_rect.height:=w^.allocation.height;
> gtk_widget_draw(w, @update_rect);
> end;
More information on the problem:
The color update is not drawn until the window is forced to redraw!
A testing program written in C to be sure it's not a fault of the pascal
binding teached me that.
Now I'll try a forced resize and hope to get no flickering.
Marc
More information about the fpc-pascal
mailing list