bcmodular / scopesync

ScopeSync is an Open Source framework that lets users easily build rich user interfaces for Sonic|Core Scope devices.
http://www.scopesync.co.uk
8 stars 4 forks source link

Viewport component #48

Open bcsharc opened 10 years ago

bcsharc commented 10 years ago

Suggestion to add a Viewport component with similar layout handling to tabbed components where child components are placed within the viewport,

This would be an alternative to using a tabbed component within a layout and similarly could be useful in situations where panel size is at a premium.

Good for hardware UI clones which don't fit well into preferred panel size.

wellis commented 10 years ago

Should be fairly straightforward to implement (http://www.juce.com/api/classViewport.html). I'd suggest we include support for the following settings:

showVerticalScrollbarIfNeeded showHorizontalScrollbarIfNeeded allowVerticalScrollingWithoutScrollbar allowHorizontalScrollingWithoutScrollbar scrollBarThickness singleStepSizeX singleStepSizeY

bcsharc commented 10 years ago

Those sound good to me. Hopefully we can also add some LnF options for the scrollbar.

wellis commented 10 years ago

Yup, looks like we can access a viewport's scrollbars, so we'll be able to set their LookAndFeel colours: http://www.juce.com/api/classScrollBar.html