Jump to content

How do I change the color of a fixed stringgrid column?


eduardosuruagy

Recommended Posts

Hello

type
  TStringGridHelper = class helper for TUniStringGrid
    procedure RefreshColumns;
  end;


{ TStringGridHelper }

procedure TStringGridHelper.RefreshColumns;
var
  P : procedure of object;
  begin
    TMethod(P).Code := @TUniStringGrid.ReconfigureColumns;
    TMethod(P).Data := Self;
    P;
end;



   UniStringGrid1.Columns[1].Title.Font.Color := clRed;
   UniStringGrid1.RefreshColumns;

 

Link to comment
Share on other sites

  • 4 years later...

This code was working in version 1576, however it does not compile in version 1583, more specifically the code "@TUniStringGrid.ReconfigureColumns", I verified that the TUniStringGrid class was rewritten, would there be a solution to replace this code? Because I couldn't identify it, remembering that I'm using the Delphi 12.1 version.

 

 

@Farshad Mohajeri @Homayoon @Hayri ASLAN @Sherzod @davidizadar

Link to comment
Share on other sites

  • 2 weeks later...
On 4/17/2024 at 9:10 AM, MarceloZaniboni said:

This code was working in version 1576, however it does not compile in version 1583, more specifically the code "@TUniStringGrid.ReconfigureColumns", I verified that the TUniStringGrid class was rewritten, would there be a solution to replace this code? Because I couldn't identify it, remembering that I'm using the Delphi 12.1 version.

 

 

@Farshad Mohajeri @Homayoon @Hayri ASLAN @Sherzod @davidizadar

Regarding the above question, I'm still waiting, could anyone help me?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...