### Add ScrollPane

Example on how to add a ScrollPane via Code.
Note that this is not the recommended way anymore. The Scrollpane should be created via the B4J Visual Designer.
See B4J HowTo ScrollPane > Add Nodes (B4J Visual Designer).
Define the ScrollPane
Dim sp As ScrollPane
sp.Initialize("sp")
sp.SetVScrollVisibility("ALWAYS")
sp.Pannable = True
Define a Pane which gets the ScrollPane InnerNode Assigned
Dim pn As Pane = sp.InnerNode
Add Views to the previous Pane defined
Dim btn As Button
btn.Initialize("btn")
btn.Text = "Button " & i
btn.Tag = "button" & i
pn.AddNode(btn,...)
... add more Views
Add the ScrollPane to the RootPane
MainForm.RootPane.AddNode(sp, 0, 0, MainForm.Width/3, MainForm.Height)
To get the Views defined loop over the Pane
For Each n As Node In pn.GetAllViewsRecursive
Log(n.Tag)
Next

Changed: , Category: ScrollPane, File: T6C243M1770.htm, ID: 1770