Forum > LCL

ListView Selected change color

(1/1)

Pe3s:
How can I change the selection color in the listview if I have it set

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---ListView1.Items[i].Selected := True;

jamie:
Have you looked at all the various custom Draw events you can use ?

You can change the brush color of the canvas depending on the state.

Pe3s:
I will read

Navigation

[0] Message Index

Go to full version