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
  • Expand
  • GetViews As ViewController()
  • Init
  • RemoveView
  • Properties
  • Expanded As Boolean (read-only)
  • UseAnimation As Boolean
  1. StackView
  2. Version 2
  3. The Details

ScrollController

PreviousThe DetailsNextStackController

Last updated 8 months ago

Class (inherits from )

Methods

AddView

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.

Expand

Expand or collapse the StackController.

Parameters

Name

Description

value

Sample Code

PushButton1 Action-Event:

MyScrollController1.Expand(True)

Returns an Array of the StackViews Views.

Init

Creates a new ScrollContainer starting with the given Parameters. UseNSScrollView is optional.

Parameters

stackView

scrollBar

Pointer to the ScrollBar.

animated

UseNSScrollView

Use NSScroller (macOS-only) If UseNSScrollView = True and you compile for Linux / Windows, the parameter will be ignored and the ScrollController uses the ScrollBar parameter.

Sample Code

MyScrollContainer1 Open-Event:

Var nsScroller As Boolean

#If TargetMacOS Then
  // macOS-only
  nsScroller = True
#Else
  nsScroller = False
#Endif

Init(MyStackView1, ScrollBar1, True, nsScroller)

RemoveView

Removes a View from the StackView.

Parameters

Name

Datatype

Description

index

Removes the View at position index from the StackView.

Properties

Returns the state of the StackController.

The animation state of the StackController.

= -1

A Boolean specifiying the state of the .

GetViews As

Pointer to the .

Set Animation of the .

= False

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 .

ContainerControl
ViewController()
Boolean
Boolean
NSScrollView
XScrollView
piDog Software
ViewController
Integer
Boolean
StackController
StackController
StackController
ScrollBar
Boolean
StackController
Boolean
Integer
AddView
Expand
GetViews
Init
RemoveView