Hi friends,
I'm trying to build my first app with b4a, beginning with app design I found my first problem:
I Have
Main
Page1 With 2 Button
Page2 With 1 Edittext & Webview
Page3 With 2 Button
Main shows a Tabhost and it shows all the "pages tab" correctly, but, not the content of these pages,
Buttons and Webview, and Edittext are created with the Designer.
I Know it's maybe a noob question but, I'm a begineer! , also I know that I have to probably Initialize, or make Visible the objects, I've tried it without luck.
I've tried to detect the current tab and then make the action but, I don't know if I am on the correct wat to do this
Thanks for help me.
Cheers.
I'm trying to build my first app with b4a, beginning with app design I found my first problem:
I Have
Main
Page1 With 2 Button
Page2 With 1 Edittext & Webview
Page3 With 2 Button
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
If FirstTime = True Then
Activity.LoadLayout("main") ' Loads "Main" layout file
TabHost1.AddTab("Principal","Page1") ' Adds Page1 on the first Tab
TabHost1.AddTab("Navegador","Page2") ' Adds Page2 on the second Tab
TabHost1.AddTab("Otros","Page3") ' Adds Page3 on the third Tab
End If
End Sub
Main shows a Tabhost and it shows all the "pages tab" correctly, but, not the content of these pages,
Buttons and Webview, and Edittext are created with the Designer.
I Know it's maybe a noob question but, I'm a begineer! , also I know that I have to probably Initialize, or make Visible the objects, I've tried it without luck.
I've tried to detect the current tab and then make the action but, I don't know if I am on the correct wat to do this
Thanks for help me.
Cheers.