Sub Process_Globals
Public App As Application
Public NavControl As NavigationController
Private Page1 As Page
Private Dialog As B4XDialog
Private xui As XUI
End Sub
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.Color = Colors.White
NavControl.ShowPage(Page1)
Dialog.Initialize(Page1.RootPanel)
Dialog.Title = "Example"
SetLightTheme
End Sub
Sub Page1_Click
Dim text As String = $"text text text text texttext text text text text text
text text text text texttext text text text text text"$
Dialog.Show(text, "OK", "", "")
End Sub
Private Sub SetLightTheme
Dialog.BodyTextColor = 0xFF5B5B5B
Dialog.OverlayColor = xui.Color_Transparent
Dialog.BorderColor = xui.Color_Black
Dialog.BackgroundColor = xui.Color_White
Dialog.ButtonsColor = xui.Color_White
Dialog.TitleBarColor = 0xFF007DC3
Dialog.ButtonsTextColor = 0xFF007DC3
End Sub