[Lazarus] Calling DrawFocusRect() outside the Paint() event

Michael Van Canneyt michael at freepascal.org
Mon Oct 10 12:50:26 CEST 2016



On Mon, 10 Oct 2016, Mattias Gaertner via Lazarus wrote:

> On Mon, 10 Oct 2016 12:05:41 +0200 (CEST)
> Michael Van Canneyt via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>
>> [...]
>> > If you want to optimize for mini changes like the focusrect you might
>> > want to use a bitmap. 
>> 
>> Please explain ?
>
> Draw to a bitmap and in OnPaint draw that. Similar to a TImage.
> Then you can also use aggpas.

I thought lazarus did double buffering by default, so this should be so automatically ?

Michael.


More information about the Lazarus mailing list