Recent

Author Topic: Center align cell  (Read 272 times)

calm_sea

  • New Member
  • *
  • Posts: 16
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

derek.john.evans

  • Jr. Member
  • **
  • Posts: 55
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: 100
    • 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

derek.john.evans

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

wp

  • Hero Member
  • *****
  • Posts: 9906
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: 16
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