estrify Posted June 22, 2012 Posted June 22, 2012 It's possible to modify the cell alignment of a TUniStringGrid? Thanks Quote
estrify Posted June 22, 2012 Author 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?. Quote
zilav Posted June 22, 2012 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> Quote
estrify Posted June 26, 2012 Author 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. Quote
RobertoLopes Posted August 25, 2021 Posted August 25, 2021 Still no cell alignment on stringgrid !!!! Why ? I cannot believe this. Quote
Sherzod Posted August 25, 2021 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. Quote
lcolombo Posted October 22, 2021 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; Quote
webdev Posted June 6, 2022 Posted June 6, 2022 Hi. Attribs.Style.Style := 'text-align: right'; Error when implementing: Quote
Sherzod Posted June 6, 2022 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. Quote
Sherzod Posted June 6, 2022 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? Quote
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.