TeeGrid and Style

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
Hans
Newbie
Newbie
Posts: 3
Joined: Thu Aug 18, 2022 12:00 am

TeeGrid and Style

Post by Hans » Fri Aug 19, 2022 10:13 am

When I have a TeeGrid on a Form, and I have a StyleBook applied to this form, the form shows styled, but the grid remains "white".

If I open the TeeGrid Editor, I can select "Default" in the Theme tab, and things appear good at design time, however, if I run the grid is white again. Any editors assigned to a cell do appear in the correct style, but the background of the grid and the cells are all white.

What do I need to do to apply the style settings to a TeeGrid?

Regards,
Hans

Marc
Site Admin
Site Admin
Posts: 1209
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: TeeGrid and Style

Post by Marc » Tue Oct 25, 2022 11:20 am

Hello Hans,

There is an example of the application of styles that may help here:

https://github.com/Steema/TeeGrid-VCL-F ... key/Themes

This property can change the back colour of a Grid:

Code: Select all

TeeGrid1.Back.Brush.Color := TColors.Yellow;
Regards,
Marc Meumann
Steema Support

Post Reply