Setting a verticalTextAlign property to an Android Input Field

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Setting a verticalTextAlign property to an Android Input Field

Post by Googie85 » Sun Aug 04, 2024 12:58 am

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.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Setting a verticalTextAlign property to an Android Input Field

Post by Klaus » Fri Aug 23, 2024 11:20 am

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

Post Reply