I need suggestion how to open different pages inside of tabpane; each modul should create new "tab" wich has same controls (buttons, label names, ...).
Any suggestion - how to open b4xpage inside of TabPane?
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private TabPane1 As TabPane
Private tb1 As Tab1
End Sub
Public Sub Initialize
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
tb1.Initialize(TabPane1) 'example of a class for a specific tab
For i = 2 To 10
Dim gt As GenericTab 'more generic class
gt.Initialize(TabPane1, "Tab " & i)
Next
End Sub
okey, clear... It's there some example how to add different layouts to tabpane from class (inside of B4xMainPage) - without "external" opening (as page).
And - if is posible - i'm sure that functionality with load b4xpages into tabs (tabpane) will be very useful.... I found a Wish from Magma...
Well, I would like to see at the future... hope soon ! :-) the option loading a b4xpage into a tabpane... or form mdi childs... how difficult can be that ? ps: I think is something java not leaving us to have it... but any tip/trick will be helpful...
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private TabPane1 As TabPane
Private tb1 As Tab1
End Sub
Public Sub Initialize
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
tb1.Initialize(TabPane1) 'example of a class for a specific tab
For i = 2 To 10
Dim gt As GenericTab 'more generic class
gt.Initialize(TabPane1, "Tab " & i)
Next
End Sub