B4J Question Remove Layout Pagination

XbNnX_507

Active Member
Licensed User
Longtime User
Hi, is it possible to remove a layout loaded with Pagination.loadlayout?
B4X:
Sub AppStart (Form1 As Form, Args() As String)
    MainForm = Form1
    MainForm.RootPane.LoadLayout("Main")
    Pagination1.LoadLayout("Pane1")
    Pagination1.LoadLayout("Pane2")
    Pagination1.LoadLayout("Pane3") ' <- i want to remove only this later, how ?
    MainForm.Show
End Sub
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
because of lack of time i was not able to test it, but this should work:

B4X:
    Dim pag As Pagination
    pag.Initialize("")
    pag.LoadLayout("Pane1")
    pag.LoadLayout("Pane2")
    pag.LoadLayout("Pane3")
    pag.Panes.RemoveAt(2)
 
Upvote 0
Top