Recent

Author Topic: ListView Selected change color  (Read 2488 times)

Pe3s

  • Full Member
  • ***
  • Posts: 101
ListView Selected change color
« on: December 05, 2021, 01:27:46 pm »
How can I change the selection color in the listview if I have it set
Code: Pascal  [Select][+][-]
  1. ListView1.Items[i].Selected := True;

jamie

  • Hero Member
  • *****
  • Posts: 5141
Re: ListView Selected change color
« Reply #1 on: December 05, 2021, 02:42:14 pm »
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.
The only true wisdom is knowing you know nothing

Pe3s

  • Full Member
  • ***
  • Posts: 101
Re: ListView Selected change color
« Reply #2 on: December 05, 2021, 04:23:16 pm »
I will read

 

TinyPortal © 2005-2018