Okay, So after a few hours I finally got the picker working. But I have a question. Is it possible to make the picker wheel smaller than it is. I want two wheels on one page and right now its overlapping. I was thinking that I can just make a new image. But I was not certain if that would make a difference. [import]uid: 69302 topic_id: 30437 reply_id: 122231[/import]
I use multiple columns in one picker wheel.
[import]uid: 19626 topic_id: 30437 reply_id: 122234[/import]
Ok, so are you saying that I can have date: month,date, year as well as time:hour, minute, AM/PM??? [import]uid: 69302 topic_id: 30437 reply_id: 122235[/import]
Yes, but it will be tight. You’re looking at 6 columns of data, so you probably will have to use 3 letter month abbreviations. It’s tough to make sense out of the sample code, but I’ve pulled out the bits for you. Do this for your column data:
local columnData = {}
columnData[1] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }
columnData[1].alignment = "right"
columnData[1].width = 150
columnData[1].startIndex = monthIndex or 3
columnData[2] = {}
for i=1,31 do
columnData[2][i] = i
end
columnData[2].alignment = "center"
columnData[2].width = 60
columnData[2].startIndex = dayIndex or 25
columnData[3] = {}
for i=1,25 do
columnData[3][i] = i+1990
end
columnData[3].startIndex = yearIndex or 20
-- create pickerWheel widget
local picker = widget.newPickerWheel{
top=480,
font=native.systemFontBold,
columns=columnData,
}
Now that just does, Mon, Day, Year, but you can add the other 3 colums following the pattern above.
[import]uid: 19626 topic_id: 30437 reply_id: 122240[/import]
@robmiracle- just a quick question. I think I have read every API, is it even possible to have “00” as the start count of the time? Because the way it looks it doesn’t seem possible. [import]uid: 69302 topic_id: 30437 reply_id: 122245[/import]