B4J Question TabPane & TabPage : How do i create a layout by code?

Cableguy

Expert
Licensed User
Longtime User
Hi guys...

Am i right in assuming a that a TabPane tab can only be created using the "loadLayout" method?

Is it possible to create a tab by code, and add views to the tabpage?

HOW!!!???
 

stevel05

Expert
Licensed User
Longtime User
I haven't done it for a while, but if memory serves, create a new TabPage and add it to the TabPane. You can then add Nodes using TabPage.Content to get it's pane.

B4X:
Dim TP As TabPage
    TP.Initialize
    TP.Text = "TabName"
    TabPane.Tabs.Add(TP)

     TP.Content.AddNode( .......)
 
Upvote 0
Top