Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 20:40

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 06 Sep 2022, 15:51 
Offline

Joined: 06 Sep 2022, 15:32
Posts: 1
I am using Delphi 10.4 and EhLib 10.0.

I have LocationGrid.TitleParams.MutliTitle set to True. I am trying to color the top row of the title using the following event handler. This works if I do not have a VCL Theme enabled. But if VCL themes are enabled, the color isn't changed. Is there a way to make this work when using themes?

procedure TformParent3.LocationGridGetMultiTitleParams(Grid : TCustomDBGridEh;
Params : TDBGridDrawTitleCellParamsEh);
begin
CodeSite.EnterMethod('TformParent3.LocationGridGetMultiTitleParams');

if (Params.Column = nil) then
begin
if (Params.MultiTitleNode <> nil) and
(Params.MultiTitleNode.Text = 'LOCATIONS ON THIS POLICY') then
begin
Params.Color := RGB(0,255,255);
Params.SecondColor := RGB(135,206,235);
end;

Params.Font.Style := [fsBold];
end;

CodeSite.ExitMethod('TformParent3.LocationGridGetMultiTitleParams');
end;

Thanks,
Randall Carpenter


Top
 Profile  
 
PostPosted: 21 Sep 2022, 16:12 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

I don't see the full grid settings.
Do you have TDBGridEh.TitleParams.FillStyle = cfstGradientEh ?

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group