ScrollController
Methods
AddView
Adds a View (dynamically at the Runtime) to the StackView.
Parameters
Name
Description
Expand
Expand or collapse the StackController.
Parameters
Name
Description
Sample Code
PushButton1 Action
-Event:
MyScrollController1.Expand(True)
GetViews As ViewController()
Returns an Array of the StackViews Views.
Init
Creates a new ScrollContainer starting with the given Parameters. UseNSScrollView
is optional.
Parameters
UseNSScrollView
Boolean = False
Use NSScroller (macOS-only)
If UseNSScrollView = True
and you compile for Linux / Windows, the parameter will be ignored and the ScrollController uses the ScrollBar parameter.
Sample Code
MyScrollContainer1 Open
-Event:
Var nsScroller As Boolean
#If TargetMacOS Then
// macOS-only
nsScroller = True
#Else
nsScroller = False
#Endif
Init(MyStackView1, ScrollBar1, True, nsScroller)
RemoveView
Removes a View from the StackView.
Parameters
Name
Datatype
Description
Properties
Expanded As Boolean (read-only)
Returns the state of the StackController.
UseAnimation As Boolean
The animation state of the StackController.
Last updated