how do i call a module in tabhost?

tabhost.jpg

As shown in the photo attached....
i have 4 layouts(modules )..there are several panel in each layout...
i have written these following code for the tabhost..
when i play it... it compile successfully with expected result...
but no response when i try to touch the buttons i created although i have coded the buttons...
can help? thx~~~


Sub Globals
Dim pnl_ligthing, pnl_fan, pnl_curtain As Panel
Dim tbhPages As TabHost
End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Main")
tbhPages.AddTab("LIGTHING","lighting.bal")
tbhPages.AddTab("FANS","fan.bal")
tbhPages.AddTab("CURTAIN","curtain.bal")
End Sub
 
Last edited:
Upvote 0

klaus

Expert
Licensed User
Longtime User
I'm afraid that you are mixing up activity modules and layouts.
What do you have in the modules ?
It would be easier to help you if you posted your project as a zip file so we could see exactly what you have done and how.

Best regards.
 
Upvote 0
Top