I have successfully created a scroll view that works exactly as I intended it to. My problem is with customizing a scrollbar. First I noticed that the scrollbar by default was Tiny. It looked as if it was 1 pixel wide. So I dug through the docs and figured out how to customize it. I have used the following code:
-- Create image sheet for custom scroll bar local scrollBarOpt = { width = 93, height = 93, numFrames = 4, sheetContentWidth = 93, sheetContentHeight = 372 } local scrollBarSheet = graphics.newImageSheet( composer.imgDir.. "slider.png", scrollBarOpt ) -- Scroll object layer.scroll\_827 = widget.newScrollView( { top = 377, left = 140, width = 820, height = 632, scrollWidth = 820, scrollHeight = 1719, hideBackground = true, isBounceEnabled = false, horizontalScrollDisabled = true, scrollBarOptions = { sheet = scrollBarSheet, topFrame = 2, middleFrame = 3, bottomFrame = 4 } } ) sceneGroup:insert( layer.scroll\_827) layer.scroll\_827:insert(layer.Frank\_Text)
I get no errors in the simulator console. No scroll bars show up.
Kevin