cubeScrollController

circle-info

Class (inherits from DesktopContainerarrow-up-right)

Methods

AddView(view As ViewController, index As Integerarrow-up-right = -1)

Adds a View (dynamically at the Runtime) to the StackView.

Parameters

Name
Datatype
Description

view

Pointer to the View which should be added to the StackView.

index

Position to add the View into the StackView.

Expand(value As Booleanarrow-up-right)

Expand or collapse the StackController.

Parameters

Name
Datatype
Description

value

A Boolean specifiying the state of the StackController.

Sample Code

Button1 Pressed-Event:

GetViews As ViewController()

Returns an Array of the StackViews Views.

Init(stackView As StackController, useAnimation As Booleanarrow-up-right = Truearrow-up-right)

Creates a new ScrollContainer starting with the given Parameters.

Parameters

Name
Datatype
Description

stackView

Pointer to the StackController.

useAnimation

Set Animation of the StackController.

Sample Code

MyScrollContainer1 Opening-Event:

RemoveView(index As Integerarrow-up-right = - 1)

Removes a View from the StackView.

Parameters

Name
Description

index

Removes the View at position index from the StackView.

Properties

AutoSetup As Booleanarrow-up-right (designtime-only)

Automatically adds the StackController contained in the ScrollController. Otherwise, you must add the StackController manually via Init in the Opening -Event.

circle-info

If AutoSetup = True, the views are arranged according to their DesktopContainer.TabIndex set in the Xojo IDE.

Expanded As Booleanarrow-up-right (read-only)

Returns the state of the StackController.

UseAnimation As Booleanarrow-up-right

The animation state of the StackController.

circle-info

The StackView Classes are able to shown within a NSScrollViewarrow-up-right. 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 XScrollViewarrow-up-right class of Jim McKay from piDog Softwarearrow-up-right.

Last updated