Page 1 of 1

Selection Color in Vista

Posted: Thu 20 Sep 2007 08:27
by michaelp
Hi there

When I have a number of records loaded, and one is selected, the selection bar shows in blue.

When the control loses focus, the blue change to gray.
In XP it works fine, but it Vista you can hardly see the gray.

How can I change this to always be blue, even if the control loses focus.

Cheers,
Michael

Posted: Thu 20 Sep 2007 15:07
by Antaeus
This behaviour depends on your grid, and, probably, on the color schema of your Windows.

Posted: Thu 20 Sep 2007 15:11
by michaelp
Yes, I agree with that.
The thing is that I use the default Vista settings without changing the color schema.

That is why I would like to know if I can change the color of the selection bar.

I would think that more user's will have this problem when migrating to Vista, and won't want to change the Vista color schema.

Posted: Fri 21 Sep 2007 07:56
by Antaeus
This depends on the grid you are using. You should refer to the documentation of your grid, or contact its vendor.
If you are using the standard grid, you can paint grid cells manually. An example you can see in the CahedUpdates demo. For more information see description of the DrawDataCell event in the Delphi help.

Posted: Fri 21 Sep 2007 10:20
by michaelp
Hi

I'm using TVirtualStringTree.
I thought it would be a setting or something to change the selection bar's color.

Thanks,
Michael

Posted: Fri 21 Sep 2007 11:36
by Antaeus
This forum is dedicated to the VirtualTable component. To find an answer to your question, please refer to the corresponding resources in Internet.