When I had to change OS to Win10 a few months ago (my computer died, so I had to get a new one) I was appalled to see that NextGrids headers were rendered in a very ugly way by the OS; however, this was easily fixed by changing the HeaderStyle. But I have now added a TNextGrid6 to a new project, and I cannot find an easy way of styling the headers. What am I missing?
HeaderStyle
#1
Posted 15 May 2021 - 05:09 PM
#2
Posted 15 May 2021 - 06:47 PM
Hi Bosjo,
Can you please attach a screenshot here to show me the issue. There are now Style property, but not sure if this is what you need.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#3
Posted 15 May 2021 - 07:58 PM
Hi boki,
I added two images, one with a version 5 grid with HeaderStyle set to something non-ugly, and the other with the version 6 grid with a header that is not much of a header at all... I would like to have something similar to the version 5 grid, if possible.
/bosjo
Attached Files
#4
Posted 15 May 2021 - 10:42 PM
Hi Bosjo,
I understand now. This was an old style based on Office 2007 that was popular back in the days. Now mostly flat design is popular. I can return gradient style in some of the upcoming updates though.
I removed it from the list, but you can make it by yourself with next event. You also need to set up YourColumn.Header.DrawingOptions to turn on doCustom and turn off doBackground flags.
procedure TForm1.NextGrid61CustomDrawHeader(Sender: TObject; Index: Integer; HeaderRect: TRect; HeaderState: TNxButtonState); begin // Here you examine HeaderState and depending on state draw your own header end;
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users