Here is my Two page code
How do I implement the toolbar?
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public App As Application
Public NavControl As NavigationController
Private Page1 As Page
Private Page2 As Page
PrivatelblOutputAsLabel
End Sub
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page1"
Page1.RootPanel.Color = Colors.green
NavControl.ShowPage(Page1)
Page1.RootPanel.LoadLayout("frmMain")
Page2.Initialize("Page2")
Page2.Title="Page2"
Page2.RootPanel.Color=Colors.red
Page2.RootPanel.LoadLayout("frmPage2")
End Sub
Private Sub Page1_Resize(Width As Int, Height As Int)
End Sub
Private Sub Application_Background
End Sub
Sub cmdPressMe_Click
lblOutput.Text="Hello World"
End Sub
Sub cmdPage2_Click
NavControl.ShowPage(Page2)
End Sub
How do I implement the toolbar?
Last edited: