Keep a selection highlighted in a listView when it loses the focus

  • Thread starter Thread starter Guillaume Charhon
  • Start date Start date
G

Guillaume Charhon

Hi,

I've created a ListView with some images.
I can selected an image, but when the focus leaves the listView, the
item doesn't appear highlighted.

I've tried to change the property HideSelection to false, but it doesn't
work.

Thank you for your help.
 
I've created a ListView with some images.
I can selected an image, but when the focus leaves the listView, the item
doesn't appear highlighted.

I've tried to change the property HideSelection to false, but it doesn't
work.

If you mean the image itself no longer appears highlighted, I believe that
behavior is by design. When HideSelection is false, you should notice that
the TEXT of the item is still highlighted, although in the "inactive"
highlight color. To achieve what you want you'd probably have to resort to
owner-drawn items.
 
tanks.

Jeff Johnson a écrit :
If you mean the image itself no longer appears highlighted, I believe that
behavior is by design. When HideSelection is false, you should notice that
the TEXT of the item is still highlighted, although in the "inactive"
highlight color. To achieve what you want you'd probably have to resort to
owner-drawn items.
 
Back
Top