iOS Question Vertical button?

MotoMusher

Active Member
Licensed User
When in landscape, I am trying to put a button on each side of the screen that is 10%x width 80%y height. I would like the text of the button to be rotated 90 degrees, or even more preferable stacked like:
S
U
B
M
I
T

Any suggestions?
 

Erel

Administrator
Staff member
Licensed User
upload_2015-2-19_8-28-41.png

B4X:
Private Sub Application_Start (Nav As NavigationController)
   NavControl = Nav
   Page1.Initialize("Page1")
   Page1.RootPanel.LoadLayout("1")
   NavControl.ShowPage(Page1)
   Button1.CustomLabel.Multiline = True
   Button1.Text = AddCrlf("SUBMIT")
End Sub

Sub AddCrlf(s As String) As String
   Dim sb As StringBuilder
   sb.Initialize
   For i = 0 To s.Length - 2
     sb.Append(s.CharAt(i)).Append(CRLF)
   Next
   sb.Append(s.CharAt(i))
   Return sb.ToString
End Sub
 
Top