Hallo zusammen!
Ich habe eine Activity mit 3 Panels.
Beim Start will ich pnIntro anzeigen, auf dem Panel ist ein Button. Wird der gedrückt, soll pnCategorys angezeigt werden. Leider passiert jedoch nichts, wenn ich auf den Button drücke. Die Frage ist nur warum?
Hier mein Versuch:
Ich habe eine Activity mit 3 Panels.
Beim Start will ich pnIntro anzeigen, auf dem Panel ist ein Button. Wird der gedrückt, soll pnCategorys angezeigt werden. Leider passiert jedoch nichts, wenn ich auf den Button drücke. Die Frage ist nur warum?
Hier mein Versuch:
B4X:
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim btnGo As Button
Dim lvCategorys As ListView
Dim pnIntro As Panel
Dim pnBrowser As Panel
Dim pnCategorys As Panel
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
pnBrowser.Initialize("pnBrowser")
pnCategorys.Initialize("pnCategorys")
pnIntro.Initialize("pnIntro")
End Sub
Sub Activity_Resume
pnIntro.Visible = True
pnBrowser.Visible = False
pnCategorys.Visible = False
End Sub
Sub Activity_Pause (UserClosed As Boolean)
pnIntro.Visible = False
pnBrowser.Visible = False
pnCategorys.Visible = True
End Sub
Sub btnGo_Click
pnIntro.Visible = False
pnBrowser.Visible = False
pnCategorys.Visible = True
End Sub