D DickD Active Member Licensed User Jun 14, 2017 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Jun 15, 2017 #2 ToobarVisible is a property of the NavigationController. Code: Copy Main.NavControl.ToolbarVisible = True Upvote 0
ToobarVisible is a property of the NavigationController. Code: Copy Main.NavControl.ToolbarVisible = True
D DickD Active Member Licensed User Jun 15, 2017 #3 Erel said: ToobarVisible is a property of the NavigationController. Code: Copy Main.NavControl.ToolbarVisible = True Click to expand... That works, thanks. Upvote 0
Erel said: ToobarVisible is a property of the NavigationController. Code: Copy Main.NavControl.ToolbarVisible = True Click to expand... That works, thanks.
D DickD Active Member Licensed User Jun 15, 2017 #4 Erel said: ToobarVisible is a property of the NavigationController. Code: Copy Main.NavControl.ToolbarVisible = True Click to expand... 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
Erel said: ToobarVisible is a property of the NavigationController. Code: Copy Main.NavControl.ToolbarVisible = True Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Jun 15, 2017 #5 Please start a new thread for a new question. Upvote 0