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

giannimaione

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

Attachments

  • splitPane_demo.zip
    119.7 KB · Views: 204

giannimaione

Well-Known Member
Licensed User
Longtime User
Hi Erel,

I do not understand. can you post an example code ?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Manage2 code:
B4X:
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:
B4X:
Sub ListMenu_SelectedIndexChanged(Index As Int)
   Select Index
       Case 0
           Manage1.Show(pn)
       Case 1
           Manage2.Show(pn)
   End Select
End Sub
 
Upvote 0

giannimaione

Well-Known Member
Licensed User
Longtime User
yes! perfetc! Ta!
new demo
 

Attachments

  • perfect.zip
    120 KB · Views: 226
Upvote 0
Top