Android Question Button click does not trigger click event in B4i (MOVED TO B4i)

jai

Member
Licensed User
Hi,

I am in the process of porting a large B4A app over to B4i. All was going well and functioning until I converted a code module that adds a panel with buttons on the lower half of the screen. This panel and the buttons are created programmatically based on options the user picked earlier. A click on any of the buttons on this panel is captured and processed in the Main module.

The code module creates the panel and buttons just fine. But a click on buttons does not fire the button click event.

As a glimpse for this problem, this code module is called from main module by-
TempAlpha=MenuPanel.Show(mp,Page1,Hint,"OK","Cancel")

The Sub called starts in the code module with-
Sub Show(mp As cMenuPanel, Page1 As Page, Hint As String, Positive As String, Cancel As String) As String

Buttons in this sub are initialized individually after each has been defined in Dim statements such as-
mp.Initialize
mp.btn0.Initialize("cMenuPanelBtn",btn0.STYLE_SYSTEM)
mp.btn1.Initialize("cMenuPanelBtn",btn1.STYLE_SYSTEM)
mp.btn2.Initialize("cMenuPanelBtn",btn2.STYLE_SYSTEM)


The button event should be captured in the main module by sub-
Sub cMenuPanelBtn_click

End Sub

But no event is fired upon clicking any button. I have used debugging points and log statements and don’t see any even happening at the button click.

What could be missing? Appreciate any help in resolving it.

Please note that I don’t have the liberty of posting the project on the forum. Thank you.
 

Cableguy

Expert
Licensed User
You have posted in the B4a forum... eventually someone will probably answer BUT you should post your B4I questions in the appropriate forum
 
Top