Hello,
I am trying to build an app with two pages, for which I use panels:
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
cu.Initialize
End If
Activity.LoadLayout("Start")
pnlStartLayout.Initialize("")
Activity.AddView(pnlStartLayout, 0, 0, 100%x, 100%y)
pnl2ndLayout.Initialize("")
Activity.AddView(pnl2ndLayout, 0, 0, 100%x, 100%y)
.........
Startpage is displayed correctly, then I click on a button which shall trigger
the second page:
Private Sub btnStarredContacts_Click
pnlStartLayout.visible = False 'this should hide the start page
pnl2ndLayout.LoadLayout("1") 'this starts the second page
.......
second page is displayed correctly, but underneath the buttons of
the startpage. What do I have to do to make the startpage disappear?
thanx, Helmut
I am trying to build an app with two pages, for which I use panels:
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
cu.Initialize
End If
Activity.LoadLayout("Start")
pnlStartLayout.Initialize("")
Activity.AddView(pnlStartLayout, 0, 0, 100%x, 100%y)
pnl2ndLayout.Initialize("")
Activity.AddView(pnl2ndLayout, 0, 0, 100%x, 100%y)
.........
Startpage is displayed correctly, then I click on a button which shall trigger
the second page:
Private Sub btnStarredContacts_Click
pnlStartLayout.visible = False 'this should hide the start page
pnl2ndLayout.LoadLayout("1") 'this starts the second page
.......
second page is displayed correctly, but underneath the buttons of
the startpage. What do I have to do to make the startpage disappear?
thanx, Helmut