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.

Code: Copy
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
 
ToobarVisible is a property of the NavigationController.
Code: Copy
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

Similar Threads

Replies
2
Views
3K
  • Article Article
iOS Tutorial BarButton icons
Replies
2
Views
15K
  • Question Question
iOS Question Toolbar color
Replies
2
Views
4K
Back
Top