PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → 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
Débuté par Popoy, 07 mar. 2020 19:42 - 3 réponses
Membre enregistré
3 334 messages
Popularité : +93 (137 votes)
Posté le 07 mars 2020 - 19:42
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
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 09 mars 2020 - 14:34
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
Membre enregistré
3 334 messages
Popularité : +93 (137 votes)
Posté le 10 mars 2020 - 21:11
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.
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 11 mars 2020 - 14:19
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