[Lazarus] TMemo flicker

zeljko zeljko at holobit.net
Tue Apr 30 09:04:28 CEST 2013


On 04/30/2013 08:52 AM, Flávio Etrusco wrote:
> On Mon, Apr 29, 2013 at 1:38 PM, K. P. <platysternon at hotmail.com> wrote:
>> Have you tried wrapping your writes in
>>
>> memo1.Lines.BeginUpdate and memo1.Lines.BeginUpdate?
>>
>
> On the contrary. I would expect Begin/EndUpdate to increase
> flickering, because they'll usually trigger a full repaint. They are
> only useful to speed up when you're are changing several lines.

They're usefull whenever you do bulk load, since Begin/EndUpdate should 
guarantee in any widgetset:
1.No painting
2.No scrolling

They should reduce flickering to minimum.You see flickering because of 
scrollbar moving up/down when you use Application.Processmessages inside 
line loading loop.


z.





More information about the Lazarus mailing list