B4J Question [Solved] splitPane, how to manage right page ?

Gianni M

Well-Known Member
Licensed User
Longtime User
project with 2 layout;
how to manage objects into layout1 and layout2 ?
 

Attachments

Hi Erel,

I do not understand. can you post an example code ?
 
Upvote 0
Manage2 code:
Code:
Sub Process_Globals
   Private fx As JFX
End Sub

Public Sub Show (parent As B4XView)
   parent.RemoveAllViews
   parent.LoadLayout("Layout1")
End Sub

Sub bt1LYT1_Click
   Log("click")
End Sub

Main code:
Code:
Sub ListMenu_SelectedIndexChanged(Index As Int)
   Select Index
       Case 0
           Manage1.Show(pn)
       Case 1
           Manage2.Show(pn)
   End Select
End Sub
 
Upvote 0
Back
Top