[Lazarus] OnCustomDrawItem

zeljko zeljko at holobit.net
Wed Dec 4 18:15:32 CET 2013


On 12/04/2013 04:49 PM, Richard Mace wrote:
> Hi,
> I am using Lazarus 1.2RC1 and am seeing an issue with OnCustomDrawItem.
> If I hover my mouse over a list view entry which has been modifed as
> follows:
>
>            Sender.Font.Style := [fsBold];
>            Sender.Font.Color := clGreen;
>
> then, the first entry in the list view flickers and heading caption
> flickers, with the same colours as above..
>
> Any ideas?

You're changing Font of ListView and that's bad.
Try with Sender.Canvas.Font ....

z.






More information about the Lazarus mailing list