iOS Question Toolbar buttons not visible

DickD

Active Member
Licensed User
I am creating a layout in the visual designer in B4i 4.0. I have added toolbar buttons 1 and 2 (Cancel and Save) and have checked Navigation Toolbar Visible. The buttons are not seen when I run the program but are visible in the designer. I've also attempted to add pg.ToolBarVisible = True in code as shown below but this generates an "Unknown member" error. What's wrong.

B4X:
Sub Start
If pg.IsInitialized = False Then
pg.Initialize("pg")
pg.RootPanel.LoadLayout("PersonalInfo")
pg.ToolBarVisible = True
End If
Main.NavControl.ShowPage(pg)
'also tried moving the toolbarvisible line to here with same result
 

DickD

Active Member
Licensed User
ToobarVisible is a property of the NavigationController.
B4X:
Main.NavControl.ToolbarVisible = True
Ahhhh...... How do you respond to clicking one of the buttons? I created Toolbar #1 of type CANCEL with tag = Cancel. I tried a number of different definitions in Sub Globals and Subroutines but can't seem to get it right. A simple code sample would be appreciated.
 
Upvote 0
Top