B4J Question Add a sizable Anchor Pane by code

Firpas

Active Member
Licensed User
Longtime User
Is it possible to add a resizable anchorpane at run time?
I tried this code but anchorpane not resized with the form

B4X:
Dim Pnl as AnchorPane
Pnl.Initialize("")
MainForm.RootPane.AddNode(Pnl, 0, 0, MainForm.RootPane.Width, MainForm.RootPane.Height)
Pnl.SetAnchors(MainForm.RootPane, 0, 0, 0, 0)
Pnl.LoadLayout("Layout1")

Thanks in advance



EDIT

SOLVED

SORRY MY MISTAKE
 
Last edited:
Top