iOS Question [Solved] Tool bar button not working

yves67

Active Member
Licensed User
Longtime User
Hello
I have built tool bar button with the designer (or with the program)
and I have this sub :

<Code>
' PageContrats ToolBar buttons event routine
Sub PageContrats_BarButtonClick (Tag As String)
Log(Tag)
Select Tag
Case "Synchro"
NavControl.ShowPage(PageSynchro)
End Select
End Sub
</code>

the name of my page is : Private PageContrats As Page

but when I click on the button, I see on the ipad the effect, but nothing in the log...

Why ?

Thanks for any help
Yves
 
Last edited:

klaus

Expert
Licensed User
Longtime User
Did you download the B4i Beginner's Guide?
In the SourceCode folder shiped with the guide you find an example program.
Chapter 12 User interfaces
Chapter 12.5 Example Program
The source code is in the UINavBar project in the SourceCode\UserInterfaces\UINavBar folder.
 
Upvote 0

yves67

Active Member
Licensed User
Longtime User
yes I have read the B4I beginner's guide
and I have run the uninavBr project
I will check again
thanks
 
Upvote 0

yves67

Active Member
Licensed User
Longtime User
Klaus solved my problem
I did a big mistake in the pageContrat.Iinitialize I put the title name instead of the page name which will be the event name
In this case the event name should be PageContrats
and the sub PageContrats_ButtonBarClick will work
Thanks again to Klaus
Yves
 
Upvote 0
Top