OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: aymen_ellouze on June 13, 2011, 08:51:39 AM

Title: Highlighted item in ListView and ListBox when loses focus
Post by: aymen_ellouze on June 13, 2011, 08:51:39 AM
Hi all,
when ListView loses fucus selected item is no longer highlighted. I have also set ShowSelectAlways to True.
Have I missed something?

I made a modeless form containing a listView and a ListBox in order to compare behaviour.
thx for advance
Title: Re: Highlighted item in ListView and ListBox when loses focus
Post by: Fred Tomke on June 13, 2011, 10:57:57 AM
Hi,

Quote from: aymen_ellouze on June 13, 2011, 08:51:39 AM
I have also set ShowSelectAlways to True.

This property doesn't seem to support value changing at runtime. It works fine if you set ShowSelectAlways at design time.

Regards,
Fred
Title: Re: Highlighted item in ListView and ListBox when loses focus
Post by: aymen_ellouze on June 13, 2011, 01:39:55 PM
thx fred,
I did so, but the problem is that when the control loses focus, selcteditem in the listBox is still highlighted in 'blue' and the selceted item in the listView in 'grey'. Users often tell me that it is not clear enough and tha it causes confusion...
Does anyone have an idea how to do to get the same let's say 'blue'?

here is the file modified as suggested by fred.

Regards,
Title: Re: Highlighted item in ListView and ListBox when loses focus
Post by: owenwengerd on June 13, 2011, 02:33:54 PM
I don't think the list view control selection color is customizable.
Title: Re: Highlighted item in ListView and ListBox when loses focus
Post by: aymen_ellouze on June 13, 2011, 04:33:24 PM
hi owen,
is it possible to have only the same standard color as in the listBox? (users always ask me that)
thx
Title: Re: Highlighted item in ListView and ListBox when loses focus
Post by: owenwengerd on June 13, 2011, 09:11:41 PM
As far as I know, Microsoft hard coded the selection color and there is no way to change it.