Hi guys,
So I found the first error in my code. I didn’t reference to the correct path, it should have been “img/sheetPickerWheel4.png”… But that didn’t solve my headache. I’m now presented with a complete white pickerWheel. Here is the code:
---// CREATING PICKERWHEER \\--- -- Loop through amount of days in a month for d=1, 31 do pickerWheel.days[d] = d end -- Loop through set number of years for y=1, 100 do pickerWheel.years[y] = 2012 + y end -- Implement column data pickerWheel.columnData = { -- Days { align = "center", width = 60, startIndex = 2, labels = pickerWheel.days }, -- Months { align = "center", width = 150, startIndex = 2, labels = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" } }, -- Years { align = "center", width = 80, startIndex = 4, labels = pickerWheel.years } } local options = { frames = { { x=0, y=0, width=320, height=222 }, { x=320, y=0, width=320, height=222 }, { x=640, y=0, width=8, height=222 } }, sheetContentWidth = 648, sheetContentHeight = 222 } local pickerWheelSheet = graphics.newImageSheet( "img/sheetPickerWheel4.png", options ) pickerWheel.dateWidget = widget.newPickerWheel { top = display.contentHeight - 222, columns = pickerWheel.columnData, --overlayFrameWidth = actualW, sheet = pickerWheelSheet, overlayFrame = 1, overlayFrameWidth = 320, overlayFrameHeight = 222, backgroundFrame = 2, backgroundFrameWidth = 320, backgroundFrameHeight = 222, separatorFrame = 3, separatorFrameWidth = 8, separatorFrameHeight = 222, columnColor = { 1,1,1 }, fontColor = { 0.4, 0.4, 0.4, 0.5 }, fontColorSelected = { 0.2, 0.6, 0.4 } } pickerWheel.input = pickerWheel.dateWidget:getValues() pickerWheel.input.day = pickerWheel.input[1].value pickerWheel.yValueWidget = pickerWheel.dateWidget.y pickerWheel.heightValueWidget = pickerWheel.dateWidget.height
Here is a link to the demo: https://1drv.ms/f/s!Aj56XELpTvMNhLE1BNeXrLyzh1wMSA
Isn’t there a way to just make a transparent pickerwheel so I can place a white rect behind it? Or to just make a full width and white pickerwheel?