StackView class v1.12 win/osx/linux and 1.331 OSX only

I have updated the StackView for OSX to 1.23. (Thanks to Christoph for his testing)

[code]What new in version 1.23 ?


  • cleaned up and optimized code
  • addRow and insertRow no longer raises NilObjectException on error but returns nil
  • setting StackView.autoCollapase to true will trigger a collapseAll
  • improved removeRow
  • removeRow and removeAll now removes all handlers correctly
  • initial size of the content will be the size of the stackview depending on the layout
  • fixed resizing of the content
  • fixed locking
    [/code]

a little teaser:

I am adding a feature which let’s you have more control over a couple of things so that you can
implement dynamic content.

what is the url for the latest demo?

Hi Richard,

current demo version for OSX is:
https://www.dropbox.com/s/0291o6or32dlp1f/StackView_OSX_1_230_Demo.zip?dl=0

There’s a new version coming which helps you set up a more complex environment such
as a finder/source list or an Apple Page Side Bar. It’s insanely easy to create that and works like a charm.
You can do this already but the new version is just more comfortable.


[code]What new in version 1.322 ?


This version has got some underlying changes and a few improvements to let you easily
create more complex custom content and headers.

  • added a StackViewContent subclass (required). You should set your already created content
    conainer control to it’s super
    StackViewContent:

    • added notifyBoundsChanged(). Call this to forwards bounds changes to the stackview depending on the layout
    • added StackViewItem property
  • added a StackViewItem property to StackViewHeader and StackViewContent

  • added a tag (auto) property to StackViewHeader, StackViewItem, StackViewContent

  • added views() function which returns an array of views owned by the stack view

  • added StackView.sort function to support sortingof the attached views

  • added an message interface for StackViewHeader and StackViewContent

  • added an Apple Pages SideBar Style example

  • added an ImageBrowser example that show you the use of notifyBoundsChanged+controls communication+embedded stackview

  • added a OSX Finder example showing the use of notifyBoundsChanged

  • added itemContextChanged event that will be raised if you click/change in a StackViewItem (content)

  • renamed addRow,insertRow,deleteRow to addView, insertView and deleteView[/code]

Current Demo Downlaod (OSX only version 1_322 :
https://www.dropbox.com/s/yh1t7tbh9amja5x/StackView_OSX_1_322_Demo.zip?dl=0

a short demo video: http://sendvid.com/jkrv9ojo

Really nice job :slight_smile:

[code]What’s new in version 1.331 ?


  • new native NSScrollView which is now a part of the StackView. It is designed to use it as separate class. (see demo window)
    NSScrollView:
  • made acceptsFirstMouse optional
  • assigning a backdrop will automatically handle the scrolling
  • easily embed a control and handle the scrolling using the boundsChanged event
    StackView:
  • improved scrolling performance
  • added boundsChanged event to the StackView class
  • fixed itemSpacing to work properly with addView, insertView and sort
  • fixed notifyBoundsChanged for horizontal layout
  • fixed an exception when closing the StackView[/code]

https://www.dropbox.com/s/n8fqv6mt15rxk8e/StackView_OSX_1_331_Demo.zip?dl=1

Highly recommended Class. Very usable

Important: The StackView 1.331 is not working correctly when enabling HDPi on OSX/macOS.
There are problems with the NSScrollview that shifts the content when bouncing up or down and makes it useless.

Robert cannot reproduce this because he does not have a Retina system.

But whats more worrying, he also is not answering mails for over 3 weeks now. Fingers crossed this great class is not abandoned and get some Retina love soon.

Have the same trouble with the other AddOn made by Robert, ImageBrowser1.12

It takes a couple of seconds to enable HiDpi mode on every monitor. The older versions of Xojo were a bit painful to use but even on my old Cinema Display I was able to do Retina for my main app.

Not sure what you meant Beatrix but the issue with Stackview isn’t easy fixable unless Robert re-code the NSScrollView part. It does work fine in the 1.322 but he changed a lot (and I mean A-LOT) in 1.331 regarding NSScrollView support.

Here is a video that shows the issue clearly. First compiling the demo without HDPi disabled -> works fine. No shifting is seen.
Second compile is with HDPi -> the whole content shifts when you bounce it at the top or bottom.
This makes the Stackview useless.

http://www.osbytes.com/ScreenFlow.mp4

Pity Robert disappeared and isn’t answering or fixing things (for which several payed for).

Hello,
How can i do to buy this addon ?
G.

Rob is gone (I think). I tried to contact him several times but sadly no answers from him for over 2 months now.
Thats the fate of 3th party developers.In this case a real pity because the class is really good (when the bugs can be fixed).

Keep in mind the class doesn’t work when enabling HDPi. It makes it basically useless.

Same trouble as Christophe De Vocht, no answers to my questions over 2 months. :frowning:

Do you know an alternative to this StackView ? I don’t find it on websites…
Gilles

[quote=292267:@Gilles Arnaud]Do you know an alternative to this StackView ? I don’t find it on websites…
Gilles[/quote]

As far as I know there is no alternative.

Martin wrote a StackView class:

https://forum.xojo.com/42401-stackview-classes-updated-macos-linux

Here is a version that works with windows and Mac

https://www.dropbox.com/s/lngk4dgcks2a3ul/StackView%20test.zip?raw=1