[Lazarus] TextRect problem and TDisplayCode

Xiangrong Fang xrfang at gmail.com
Sat Mar 9 08:23:45 CET 2013


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-ide.org/pipermail/lazarus/attachments/20130309/d1b8e322/attachment-0002.html>


More information about the Lazarus mailing list