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

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Mon Oct 10 12:55:14 CEST 2016

On 2016-10-10 11:11, Mattias Gaertner via Lazarus wrote:
> Draw to a bitmap and in OnPaint draw that. Similar to a TImage.
> Then you can also use aggpas.

Incidently, that is how fpGUI's latest 'develop' branch overcomes the
painting outside the Paint method problems. Seeing as AggPas is used as
the internal buffer, it doesn't matter when painting calls happen. The
actual Paint() method simply bitblt's the AggPas buffer to the real
window canvas.


fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

My public PGP key:  http://tinyurl.com/graeme-pgp

More information about the Lazarus mailing list