Dear All
I have create 1 panel to load layout page base on user click (layout Home, Notif and History).
Each layout have some Lable,Button, B4XFloatTextField, SwiftButton .
My problem is, when i have load layout Notif and back to layout Home. When we click some area, the button in layout Notif still working . So how to clear layout Notif in panel, before i load new Layout (layout home) over it?
Thanks
Nicky
I have create 1 panel to load layout page base on user click (layout Home, Notif and History).
Each layout have some Lable,Button, B4XFloatTextField, SwiftButton .
My problem is, when i have load layout Notif and back to layout Home. When we click some area, the button in layout Notif still working . So how to clear layout Notif in panel, before i load new Layout (layout home) over it?
Thanks
Nicky
example:
Private Sub lblhome_Click
Pnlmenuhold.Addview(CreateListItemPage("pghome",Pnlmenuhold.Width, Pnlmenuhold.Height+50 ),0,0,Pnlmenuhold.Width,Pnlmenuhold.Height)
End Sub
Private Sub lblnotif_Click
Pnlmenuhold.Addview(CreateListItemPage("pgnotif",Pnlmenuhold.Width, Pnlmenuhold.Height+50 ),0,0,Pnlmenuhold.Width,Pnlmenuhold.Height)
End Sub
Private Sub lblhistory_Click
Pnlmenuhold.Addview(CreateListItemPage("pghistory",Pnlmenuhold.Width, Pnlmenuhold.Height+50 ),0,0,Pnlmenuhold.Width,Pnlmenuhold.Height)
End Sub
Sub CreateListItemPage(namapage As String ,Width As Int, Height As Int) As Panel
Dim p As Panel
p.Initialize("")
Root.AddView(p ,0,0, Width, Height)
p.LoadLayout(namapage)
p.RemoveView
Return p
End Sub