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
view
Pointer to the View which should be added to the StackView.
index
Position to add the View into the StackView.
Expand(value As Boolean)
Expand or collapse the StackController.
Parameters
value
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
stackView
useAnimation
Sample Code
MyScrollContainer1 Opening
-Event:
RemoveView(index As Integer = - 1)
Removes a View from the StackView.
Parameters
index
Removes the View at position index from the StackView.
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