Lazarus

Programming => Packages and Libraries => FPSpreadsheet => Topic started by: calm_sea on July 02, 2022, 01:44:32 pm

Title: Center align cell
Post by: calm_sea on July 02, 2022, 01:44:32 pm
Hello everybody. I cannot center the contents of the cell. The HorAlignment property does not accept any values. wiki example  Grid.HorAlignment [1,1]: = haCenter doesn't work
Title: Re: Center align cell
Post by: dje on July 02, 2022, 02:14:00 pm
Have you added fpsTypes to your uses list?
Title: Re: Center align cell
Post by: bobby100 on July 02, 2022, 02:19:17 pm
It won't work that way.
https://forum.lazarus.freepascal.org/index.php?topic=17572.0
Title: Re: Center align cell
Post by: dje on July 02, 2022, 02:27:11 pm
It won't work that way.
https://forum.lazarus.freepascal.org/index.php?topic=17572.0

OP appears to be talking about TsWorksheetGrid
Title: Re: Center align cell
Post by: wp on July 02, 2022, 03:15:45 pm
I don't know what you are doing. What does "doesn't work" mean? Please see in the attached demo that grid.HorAlignment[1,1] is working indeed.
Title: Re: Center align cell
Post by: calm_sea on July 02, 2022, 04:50:51 pm
Have you added fpsTypes to your uses list?
No, I was without, Thank you very much, it's OK now.  And thank you all, I am not an English speaker, I am sorry that the message was not very clear
TinyPortal © 2005-2018