eduardosuruagy Posted September 19, 2019 Share Posted September 19, 2019 How do I change the color of a fixed stringgrid column? StringGrid.Columns[_Col].Title.Font.Color := clRed; Why doesn't this code work? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted September 19, 2019 Share Posted September 19, 2019 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; Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted September 19, 2019 Author Share Posted September 19, 2019 1 hour ago, Hayri ASLAN said: UniStringGrid1.Columns[1].Title.Font.Color := clRed; UniStringGrid1.RefreshColumns; It worked, thank you very much !!! Quote Link to comment Share on other sites More sharing options...
MarceloZaniboni Posted April 17 Share Posted April 17 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 Quote Link to comment Share on other sites More sharing options...
MarceloZaniboni Posted 1 hour ago Share Posted 1 hour ago 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? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted 49 minutes ago Share Posted 49 minutes ago Hello, We will try to check. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.