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



_______________________________________________
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to