Is there any way to change the width of the scollbar in the scrollview (widget.newScrollView())? I am creating the scrollView by following code. Even I change the “scrollBar.png” to different image size (corresponding changing the scrollBarOpt), it looks the same. Any help would be highly appreciated.
local scrollBarOpt = {
width = 20,
height = 20,
numFrames = 3,
sheetContentWidth = 20,
sheetContentHeight = 60
}
local scrollBarSheet = graphics.newImageSheet( “scrollBar.png”, scrollBarOpt )
scrollBarOptions = {
sheet = scrollBarSheet,
topFrame = 1,
middleFrame = 2,
bottomFrame = 3
}
_local scrollView = widget.newScrollView
{
top = 100,
left = 10,
width = 300,
height = 400,
scrollWidth = 600,
scrollHeight = 800,
listener = scrollListener,
scrollBarOptions = {
sheet = scrollBarSheet,
topFrame = 1,
middleFrame = 2,
bottomFrame = 3
}_