ScrollController
Class (inherits from DesktopContainer)
Methods
AddView(view As ViewController, index As Integer = -1)
Adds a View (dynamically at the Runtime) to the StackView.
Parameters
Expand(value As Boolean)
Expand or collapse the StackController.
Parameters
Sample Code
Button1 Pressed
-Event:
GetViews As ViewController()
Returns an Array of the StackViews Views.
Creates a new ScrollContainer starting with the given Parameters.
Parameters
Sample Code
MyScrollContainer1 Opening
-Event:
RemoveView(index As Integer = - 1)
Removes a View from the StackView.
Parameters
Properties
AutoSetup As Boolean (designtime-only)
Automatically adds the StackController contained in the ScrollController. Otherwise, you must add the StackController manually via Init
in the Opening
-Event.
If AutoSetup = True
, the views are arranged according to their DesktopContainer.TabIndex set in the Xojo IDE.
Expanded As Boolean (read-only)
Returns the state of the StackController.
UseAnimation As Boolean
The animation state of the StackController.
The StackView Classes are able to shown within a NSScrollView. This feature is macOS-only and there is no guarantee that the feature will work in coming Versions of Apple’s macOS. StackView uses the XScrollView class of Jim McKay from piDog Software.
Last updated