Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread How to change de background color on a TGrid Header?
Tue, Jun 21 2016 4:41 PMPermanent Link

Mario Enríquez

Open Consult

Helllo everybody,

I've been going crazy trying to find a way to change the header background color on a Grid?

I've seen a the property list but none allows for header color management.

Regards,
Mario
Tue, Jun 21 2016 5:27 PMPermanent Link

Walter Matte

Tactical Business Corporation



It is a fix value.

You can change it for all grids by editing the interface.

The TGridHeaderBar interface change the vacant header portion of the Grid.  It only has one state.

The TGridHeader interface is for columns - it has 4 states.

You could copy the interface files into your project folder and edit these so you will still have the originals to go back to if you want.

Walter
Tue, Jun 21 2016 5:49 PMPermanent Link

Mario Enríquez

Open Consult

Thank you Walter.

Does it means that it isn't possible to have diferente header bar colors in the same project?

Guess the only way is through subclassing.... Frown

Regards,
Mario
Tue, Jun 21 2016 6:27 PMPermanent Link

Walter Matte

Tactical Business Corporation

Yes.

I have published some of the TBackground properties in the Library to allow for different color in the same project.  I haven;t looked at the grid yet.  It is easy when there is only 1 state.

Walter
Image