Being back to juce after more than two years. Several thing improved and may let us use it in the future👍 One first question, is there a possibility for a GridView Component? Furthermore, may I use touch-drag gestures to scroll though this component?
My grid needs were like a view of album covers, where there’s a dynamic number of columns containing identical auto-wrapping items. I could probably put a wrapper around TableListBox to make it work…
that means, I will have to implement the gridview on my own. Speaking in iOS I have to implement the gestures, the rubber band effect and the tiling on my own. That means the time we save on the audio part with juce will be lost in the UI part Hhm, tough decision.
That’s probably true no matter what library you’re using… In my experience, it’s very unlikely that the exact grid behaviour you need would be what any kind of ready-made library “gridview” component does. You’re almost certainly going to need to customise and tweak it. A Viewport that contains some components with a FlexBox layout does exactly the same thing and IMHO is better in terms of flexibility and probably code size as well.
How would you resize the container for all the components managed by the FlexBox? For example you load 3 items and they take a single row. How do you get the height you need to set to the container for that row? Than you load 20 more items and they should go beyond the viewport edge into scroll. Same question, here.