iOS Question Vertical button?

Discussion in 'iOS Questions' started by MotoMusher, Feb 19, 2015.

  1. MotoMusher

    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?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    upload_2015-2-19_8-28-41.png
    Code:
    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 StringAs 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
     
    MotoMusher likes this.
Loading...
  1. 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.
    Dismiss Notice