treelistview icon indicating copy to clipboard operation
treelistview copied to clipboard

how to add Checkboxes in TreeListView?

Open hydexon opened this issue 4 years ago • 3 comments

There's some sort way to put native checkboxes in an single column of TreeListView records?, i'm not needing the use of the tree structure, but mostly ListView, because this control gives the exact amount of stock customization i need, but i can't find any way to add checkboxes in an column.

Thanks.

hydexon avatar Nov 02 '20 02:11 hydexon

You can place native controls in it. Here I place a TEdit in a cell, so it can be edited. getBounds returns the appropiate place

The problem is the scrolling, you need to update the positions when someone scrolls, since it uses TScrollBar not a TScrolBox. And if you update the positions it might trigger unnecessary repaints which could cause it to flicker...

I also have been using it with non native checkboxes: grafik

benibela avatar Nov 09 '20 13:11 benibela

Sorry for reply, THIS LATE, but your solution worked for me and it's better, just a final reply, there's a way also to put progress bar in a record item?, use the record item .text property as the progressbar progress value?

hydexon avatar Sep 26 '21 02:09 hydexon

You can use the CustomRecordItemDraw event to draw a progress bar.

benibela avatar Sep 26 '21 22:09 benibela