[Lazarus] RE : RE : RE : RE : gtk2 TCustomControl.Paint, InvalidateRect

Ludo Brands ludo.brands at free.fr
Sun Jul 10 08:36:07 CEST 2011


> Aren't scrollbar mouse movements signaled by special gtk events? That is
where 
> I would expect the whole parent area to be invalidated. How are windows
and gtk 
> solving this? 

Thinking of it, isn't the onscroll event meant to handle how the scrolled
area is repainted? I'm not talking about repainting the scrollbar itself but
the area it is supposed to control. If I want fe. to update only the record
number or page number while scrolling and repaint the full page/table when
scrolling stops, there is no reason to invalidate the whole area. Actually,
I'm still having a problem finding an example where Tscrollbar has to
invalidate the whole or part of the parent area. 

Ludo






More information about the Lazarus mailing list