Sign in Join

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

Mailing lists / lazarus / 2009-03

Unable to use method AdvancedCustomDrawItem and, AdvancedCustomDrawSubItem

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Benito van der Zander
lv's viewstyle is vsReport,and i was going to place a progressbar on a column,and that is what a downloader usually looks like.

It is not possible to place a TProgressbar in a listview. (item.data does nothing, it's for user defined data independent of the LCL)

What you have have to do is to draw a own bar, e.g. with two or more rectangles (see canvas)

Benito

Reply by email

YanChengyuan
to Benito van der Zander

but i made it with lazarus under windows.
and i could not use customdraw method to draw anything.

Show quoted text 15 lines
> > lv's viewstyle is vsReport,and i was going to place a progressbar on a > column,and that is what a downloader usually looks like. It is not possible to place a TProgressbar in a listview. (item.data does nothing, it's for user defined data independent of the LCL) What you have have to do is to draw a own bar, e.g. with two or more rectangles (see canvas) Benito _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090317/80649ade/attachment-0001.html

Reply by email