Recent

Author Topic: Center align cell  (Read 1107 times)

calm_sea

  • New Member
  • *
  • Posts: 39
Center align cell
« 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

dje

  • Full Member
  • ***
  • Posts: 134
Re: Center align cell
« Reply #1 on: July 02, 2022, 02:14:00 pm »
Have you added fpsTypes to your uses list?
« Last Edit: July 02, 2022, 02:27:35 pm by derek.john.evans »

bobby100

  • Full Member
  • ***
  • Posts: 161
    • Malzilla
Re: Center align cell
« Reply #2 on: July 02, 2022, 02:19:17 pm »
https://gitlab.com/bobby100 - my Lazarus components and units
https://sourceforge.net/u/boban_spasic/profile/ - my open source apps

https://malzilla.org/ - remainder at my previous life as a web security expert

dje

  • Full Member
  • ***
  • Posts: 134
Re: Center align cell
« Reply #3 on: July 02, 2022, 02:27:11 pm »

wp

  • Hero Member
  • *****
  • Posts: 11853
Re: Center align cell
« Reply #4 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.
« Last Edit: July 02, 2022, 03:25:04 pm by wp »

calm_sea

  • New Member
  • *
  • Posts: 39
Re: Center align cell
« Reply #5 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