Pickerwheel : is it really this bad?

Hi,

I read quite a number of negative posts regarding the pickerwheel widget, but I started making one under the assumption, from what I read in the libraries, that if I provide my own imagesheet I could set my PW’s width and height ot custom values.

Doesn’t seems like it so far: I pasted the template found in the corona’s documents and applied my values, but now I have only the wheels of the widget properly set in place. The overlay and background frames are well welded together but with x and y offsets from the wheels (basically in an other part of the screen) and the separator frame almost in place between the wheels (there 2 in this case) but pretty offset on the Y axes.

Maybe I’m doing something wrong in my code, here:  (image sheet is exactly 175x100)

        local columnData = {            { align = "center", width = 43, startIndex =  numIDX, labels = smallIX },            { align = "center", width = 43, startIndex =  numIdx2, labels = BIGix }                          }         local customPWLoptions = {     frames =     {         { x=0, y=0, width=87, height=100 },         { x=87, y=0, width=84, height=100 },         { x=171, y=0, width=4, height=100 }     },     sheetContentWidth = 175,     sheetContentHeight = 100 } local pickerWheelSheet = graphics.newImageSheet( "graphics/customPwl.png", customPWLoptions  )            pickerWheel = widget.newPickerWheel({                  id = "factorSelect",         font = "Helvetica-Bold",         left = centerX - 38,         top = centerY + 100,         columns = columnData,         sheet = pickerWheelSheet,                   overlayFrame = 1,          overlayFrameHeight = 100,          overlayFrameWidth = 87,          backgroundFrame = 2,          backgroundFrameWidth = 84,          backgroundFrameHeight = 100,          separatorFrame = 3,          separatorFrameWidth = 4,          separatorFrameHeight = 100             })         sceneGroup:insert(pickerWheel)     pickerWheel.anchorX = 0.5

Any help’d be appreciated! Thank you.

Hi @akak,

Well, unfortunately the picker wheel is a fairly rigid widget and it must adhere to a specific size. This is all outlined in the documentation (please see the “Gotchas” section) and if you don’t follow all of the guidelines, there will be visual issues. Ultimately, we realize that this widget could use improvement, but it’s an extremely complex widget with many “moving parts” so making it more flexible is not a quick process.

Take care,

Brent

Hi @akak,

Well, unfortunately the picker wheel is a fairly rigid widget and it must adhere to a specific size. This is all outlined in the documentation (please see the “Gotchas” section) and if you don’t follow all of the guidelines, there will be visual issues. Ultimately, we realize that this widget could use improvement, but it’s an extremely complex widget with many “moving parts” so making it more flexible is not a quick process.

Take care,

Brent