estrify Posted June 22, 2012 Share Posted June 22, 2012 It's possible to modify the cell alignment of a TUniStringGrid? Thanks Link to comment Share on other sites More sharing options...
zilav Posted June 22, 2012 Share Posted June 22, 2012 Use CSS for that. Link to comment Share on other sites More sharing options...
estrify Posted June 22, 2012 Author Share Posted June 22, 2012 Use CSS for that. Ok, thanks for help. Do you know the name of styles that UniGUI uses for the TUniStringGrid to modify the general appearance for this component for all forms where it is being used?. Link to comment Share on other sites More sharing options...
zilav Posted June 22, 2012 Share Posted June 22, 2012 Push F12 in Mozilla/Chrome and see yourself... or better create your own element to style inside every cell, something like <span style="width: 100%; text-align: center;">test</span> Link to comment Share on other sites More sharing options...
estrify Posted June 26, 2012 Author Share Posted June 26, 2012 Push F12 in Mozilla/Chrome and see yourself... or better create your own element to style inside every cell, something like <span style="width: 100%; text-align: center;">test</span> I eventually ended up using a TUniDBGrid with an in memory table to meet the features that TUniStringGrid doesn't have yet. Thanks anyway. Link to comment Share on other sites More sharing options...
RobertoLopes Posted August 25, 2021 Share Posted August 25, 2021 Still no cell alignment on stringgrid !!!! Why ? I cannot believe this. Link to comment Share on other sites More sharing options...
Sherzod Posted August 25, 2021 Share Posted August 25, 2021 46 minutes ago, RobertoLopes said: Still no cell alignment on stringgrid !!!! Why ? I cannot believe this. Hello, It seems that even in VCL there is no such possibility. Link to comment Share on other sites More sharing options...
lcolombo Posted October 22, 2021 Share Posted October 22, 2021 OnDrawCell event: procedure MyForm.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer; var Value: string; Attribs: TUniCellAttribs); begin Attribs.Style.Style := 'text-align: right;'; if ARow = 0 then Attribs.Style.Style := 'text-align: center'; end; Link to comment Share on other sites More sharing options...
webdev Posted June 6, 2022 Share Posted June 6, 2022 Hi. Attribs.Style.Style := 'text-align: right'; Error when implementing: Link to comment Share on other sites More sharing options...
Sherzod Posted June 6, 2022 Share Posted June 6, 2022 4 minutes ago, webdev said: Attribs.Style.Style := 'text-align: right'; Hello, Which build of UniGUI are you using? I couldn't reproduce your issue. Link to comment Share on other sites More sharing options...
webdev Posted June 6, 2022 Share Posted June 6, 2022 FMSoft_uniGUI_Complete_Professional_1.90.0.1545 Link to comment Share on other sites More sharing options...
Sherzod Posted June 6, 2022 Share Posted June 6, 2022 1 minute ago, webdev said: FMSoft_uniGUI_Complete_Professional_1.90.0.1545 Okay. Can you make a simple testcase to reproduce? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now