Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-12

OnCustomDrawItem

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Richard Mace

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?

Lazarus 1.2RC Windows XP

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131204/3ffce6df/attachment.html>

Reply by email

zeljko
to Richard Mace
Richard Mace wrote 12 lines
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.

Reply by email