iOS Question Click event not firing

energypf

Member
Licensed User
Longtime User
Hello, I just installed and configured the B4i Bridge and the Mac Host. I can install the app on my iPhone S6 Plus, but the simple click of a button does not run, where am I wrong?

'Code module
#Region Project Attributes
#ApplicationLabel: DebugCodeChange
#Version: 1.0.0
'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
#iPhoneOrientations: Portrait, LandscapeLeft, LandscapeRight
#iPadOrientations: Portrait, LandscapeLeft, LandscapeRight, PortraitUpsideDown
#End Region

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 Button1 As Button
End Sub

Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.LoadLayout("Main")
NavControl.ShowPage(Page1)
End Sub

Private Sub Page1_Resize(Width As Int, Height As Int)

End Sub

Private Sub Application_Background

End Sub


Sub Button1_Click
Msgbox ("Hello world","Info")
End Sub
 

stevel05

Expert
Licensed User
Longtime User
It works OK here, have you changed the EventName of the button in the designer? It should be Button1. And please used [ code] [ /code] (without spaces) tags when posting code.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
And, do you see any errors in the Log?
 
Upvote 0
Top