[ANN] StackView 3.1 is now available!

Today I released version 3.1 of the StackView classes for Xojo. This version only works with Desktop API 2.0 projects from Xojo version 2021r3+.


Info


The classes enable a StackView, similar to Apple’s NSStackView, to be used natively across platforms (macOS, Windows, Linux) with the help of DesktopContainers. The StackView was tested under macOS 10.13+, Windows 10/11, Mint 19.2, Fedora 27, Ubuntu 16 and Elementary OS 5.0 Juno. The demo project was optimized for all three platforms. If the project is executed or compiled for Windows, the method PrepareForWindows takes over all adjustments for the controls within the StackView to create a flicker-free version.

Under Linux, the controls of the demo project automatically adapt to the system sizes of the respective distribution.


Version 3.1


  • [Demo] The DesktopDisclosureTriangle.Pressed event has been renamed by Xojo 2024r1 to DesktopDisclosureTriangle.ValueChanged event and the demo app has been updated accordingly.

Version 3.0


  • [New] StackView now uses the Desktop Control API 2.0 (DesktopContainer etc.)
  • [New] Added ScrollController.AutoSetup and StackController.AutoSetup properties (designtime-only). If you set these properties to True , you do not need to set any additional code in the Opening -Events of ScrollController/StackController instances. The usage is optional.
  • [New] Added ViewController.ScrollerStyleChanged -Event and ScrollerStyleChange Method (which calls the ScrollerStyleChanged -Event). Also added ScrollController.NotifyViewControllersOfScrollerStyleChange Method (private).
  • [New] Added NotificationContainer class with NotificationCenter shared property - Superclass of ScrollController, StackController, ViewController. This results in less code as SVNotificationCenter = SVNotificationCenter.SharedInstance could be removed in several places in the code.
  • [New] On Windows, Linux and macOS (if UseNativeScroller = False), the DesktopScrollbar is now automatically created in the code and users no longer need to create a control instance in the layout editor.
  • [New] Using UseNativeScroller on macOS now auto-hides the Scrollers if not needed.
  • [Renamed] ViewController.Animated to UseAnimation to be consistent with naming within Scroll-/StackController.
  • [Removed] Dependence on Crypto Module for NSScrollView was removed and replaced with native UUID generation.
  • [All] Code clean-up and adjustment to coding guidelines in many places.

Documentation


The documentation and all information about the StackView are available online at the following link: Version 3 | Add-ons


How to purchase?


Just write me, @Martin_T, a private message at the Xojo Forum (https://forum.xojo.com/u/martin_t) with your valid e-mail address. I’ll sent you the invoice about 15€ and after purchasing via PayPal you’ll get the unencrypted source code.

Demo Project


Demo-Clip


StackView for Xojo

@Pro

3 Likes