Erel--How do I set the button text color in code? There does not seem to be a .TextColor setting. Also, is there a way to have multi-line text on a button?
Erel--Thanks again for your help. I have been putting labels of different lengths on buttons (in different languages) and this has sorted out the problem I was experiencing.
Sub SetMultiline(b As Button)
Dim no As NativeObject = b
no.GetField("titleLabel").SetField("numberOfLines", 0)
no.GetField("titleLabel").SetField("textAlignment", 1)
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.