Sign in Join

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

Mailing lists / lazarus / 2013-03

TextRect problem and TDisplayCode

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Xiangrong Fang

Hi All,

I try to do some customization in TListView.OnCustomDrawItem:

    r := Item.DisplayRect(drBounds);
    TextOut(r.Left, r.Top, 'Hello');  <-- this worked
    TextRect(r, 0, 0, 'Hello');       <-- this does not work

Why?

Another question which I cannot google any answer is, what's the meaning of TDisplayCode? I don't want its values which is obvious, but the meaning of each value, e.g. drBounds, drLabels etc. Not documented anywhere...

Thanks,
Shannon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130309/d1b8e322/attachment.html>

Reply by email