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

  • Thread starter Guillaume Charhon
  • 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.
 
J

Jeff Johnson

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.
 
G

Guillaume Charhon

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top