cubeStackController

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
Description

view

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

index

Position to add the View into the StackView.

Init(useAnimation As Booleanarrow-up-right)

Set Views animation.

Parameters

Name
Description

useAnimation

A Booleanarrow-up-right specifiying the animation state of the StackController.

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 ViewControllers contained in the StackController (based on their z-Order in the Layout Editor). Otherwise, you must add the ViewControllers manually via Views.Add() in the Opening-Event.

circle-info

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

Set or return the state of the StackView.

UseAnimation As Booleanarrow-up-right

Animate all Views while collapsing/expanding.

Views() As ViewController

Collection of ViewControllers.

Sample Code

MyStackController1 Opening-Event:

Last updated