Page 1 of 1

Setting a verticalTextAlign property to an Android Input Field

Posted: Sun Aug 04, 2024 12:58 am
by Googie85
Hii Guys!

I am trying to set the properties of an Android Input field by using "verticalTextAlign" property. I have used the following:

Code: Select all

   mobileControlCreate "input", "UsernameEdit"
   mobileControlSet "UsernameEdit", "rect", "781,367,1131,406" 
   mobileControlSet "UsernameEdit", "textAlign", "center"
   mobileControlSet "UsernameEdit", "visible", true

I want to set the verticalTextAlign to "middle", I have tried these:

Code: Select all

   mobileControlSet "UsernameEdit", "verticalTextAlign", "middle"
   set the verticalTextAlign of widget "UsernameEdit" to "middle"
Am I doing something wrong or does LiveCode not allow me to set the verticalTextAlign within a widget?

All replies are greatly received!

Thanks,

Googie.

Re: Setting a verticalTextAlign property to an Android Input Field

Posted: Fri Aug 23, 2024 11:20 am
by Klaus
Hi Googie,

according to the dictionary "verticalTextAlign" is a property of the Android Native Field,
so "mobilecontrolset" commands will probably not work with this widget.

However this should work:

Code: Select all

set the verticalTextAlign of widget "UsernameEdit" to "middle"
But doesn't?


Best

Klaus