iOS Question XUI Views - B4XDialog Title Multiline

Lucas Eduardo

Active Member
Licensed User
Hello, i was trying to use the library xui views, but when a use the dialog there is no option to put the title in multiline. Is there a way to put the title of Dialog in multine?

Thank you.


B4X founder
Staff member
Licensed User
Sub Process_Globals
    Public App As Application
    Public NavControl As NavigationController
    Private Page1 As Page
    Private dialog As B4XDialog
End Sub

Private Sub Application_Start (Nav As NavigationController)
    NavControl = Nav
    Page1.Title = "Page 1"
    Page1.RootPanel.Color = Colors.White
    dialog.Title = $"first line
second line"$
    dialog.TitleBarHeight = 60dip
End Sub

Sub Page1_Click
    Dim rs As Object = dialog.Show("aaa", "ok", "", "")
    Dim lbl As Label = dialog.TitleBar.GetView(0)
    lbl.Multiline = True
    'if you want to wait for the dialog to complete:
    Wait For (rs) Complete (Result As Int)
End Sub
Upvote 0