PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 2024 → Change the horizontal alignment of a Label by programming in iOS
Change the horizontal alignment of a Label by programming in iOS
Iniciado por Popoy, mar., 07 2020 7:42 PM - 3 respostas
Membro registado
3.311 mensagems
Popularité : +93 (137 votes)
Publicado em março, 07 2020 - 7:42 PM
Hello,
When initializing a label I have the following code:
MySelf..HorizontalAlignment = haRight

And I would like to find its equivalent for iOS even in swift or Objective C
Thank you for your help
Membro registado
498 mensagems
Popularité : +8 (8 votes)
Publicado em março, 09 2020 - 2:34 PM
Hi Popoy

I search this property and I see it's available for iOS

source:
https://help.windev.com/en-US/…

there's a problem with that property on iOS?

--
Best Regards
ARV
Membro registado
3.311 mensagems
Popularité : +93 (137 votes)
Publicado em março, 10 2020 - 9:11 PM
Thanks ARV
My horizontal framing problem is solved.
These were not errors but warnings that the constants do not exist on iOS.
I replaced haLeft by 0 and haRight by 2 and it works on my iphone 8.
Why were the constants not created for ios?
Proof that the pcsoft tests leave something to be desired.
Membro registado
498 mensagems
Popularité : +8 (8 votes)
Publicado em março, 11 2020 - 2:19 PM
Hi Popoy

Oh I see what you mean!
you were talking about the constants of haLeft and haRight not the property

I follow what PCSoft say on this source:
https://help.windev.com/en-US/…

They put the constant but they doesn't say anything about iOS where those constant are not available, that's really weird but thanks for post your solution this will be a solution for me in some time in the future or even someone having the same problem as you right now.

Also why you don't set it on the control instead of set it on code?
There's a visual effect you want to show to the user?

--
Best Regards
ARV