Hello,
I’m using build 2011.704 and want to customize the look of a newSlider using leftImage, rightImage, handleImage,… :
local myleftImage = {“left.png”,100,100}
local mySlider = widget.newSlider{
width=200,
value=100,
leftImage = myleftImage,
callback=sliderListener
}
But I get the following error :
ERROR: bad argument #2 to display.newImageRect(): width expected, but got nil.
Runtime error
?:0: attempt to index a nil value
stack traceback:
[C]: ?
?: in function ‘new’
?: in function <?:2530>
(tail call): ?
d:\corona\projet1\main.lua:402: in main chunk
Can anyone help me ?
Thank you!
[import]uid: 49426 topic_id: 24883 reply_id: 324883[/import]