Add-ons
  • Welcome
  • StackView
    • Version 2
      • How it works
      • How to use it
      • The Details
        • ScrollController
        • StackController
        • ViewController
      • Tips & Tricks
      • General Information
    • Version 3
      • How it works
      • How to use it
      • The Details
        • ScrollController
        • StackController
        • ViewController
      • Tips & Tricks
      • General Information
    • Changelogs
    • Purchase
  • FTC Word-Exporter
    • How to use it
    • General Information
  • CSTrueColors
    • Documentation
      • NSColorAddition
      • AppKitAddition
        • VisualEffectView
      • User32Addition
      • Template Images
      • The Demo Project
    • Changelog
  • Android
  • Open Source Projects
    • Android Design Extensions
  • Xojo Language Guide
    • The Basics
Powered by GitBook
On this page
  • Methods
  • AddView(view As ViewController, index As Integer = -1)
  • Expand(value As Boolean)
  • GetViews As ViewController()
  • Init(stackView As StackController, useAnimation As Boolean = True)
  • RemoveView(index As Integer = - 1)
  • Properties
  • AutoSetup As Boolean (designtime-only)
  • Expanded As Boolean (read-only)
  • UseAnimation As Boolean
  1. StackView
  2. Version 3
  3. The Details

ScrollController

PreviousThe DetailsNextStackController

Last updated 1 year ago

Class (inherits from )

Methods

AddView(view As , index As = -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 )

Expand or collapse the StackController.

Parameters

Name
Datatype
Description

value

Sample Code

Button1 Pressed-Event:

Pressed-Event
MyScrollController1.Expand(True)

Returns an Array of the StackViews Views.

Creates a new ScrollContainer starting with the given Parameters.

Parameters

Name
Datatype
Description

stackView

useAnimation

Sample Code

MyScrollContainer1 Opening-Event:

Opening-Event
If Not Self.AutoSetup Then
  Init(MyStackView1)
End If

Removes a View from the StackView.

Parameters

Name
Description

index

Removes the View at position index from the StackView.

Properties

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

Returns the state of the StackController.

The animation state of the StackController.

= -1

A Boolean specifiying the state of the .

GetViews As

Init(stackView As , useAnimation As = )

Pointer to the .

= True

Set Animation of the .

RemoveView(index As = - 1)

= -1

AutoSetup As (designtime-only)

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

Expanded As (read-only)

UseAnimation As

The StackView Classes are able to shown within a . 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 class of Jim McKay from .

DesktopContainer
ViewController
Integer
Boolean
ViewController()
StackController
Boolean
True
Integer
Boolean
Boolean
Boolean
NSScrollView
XScrollView
piDog Software
Init
ViewController
Integer
Boolean
StackController
StackController
StackController
Boolean
StackController
Integer
AddView
Expand
GetViews
Init
RemoveView