How to customize a newSlider

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]

This problem is now solved by removing widget_ios directory from my projet directory and copying my customs pngs in the projet directory.

widget.setTheme( “theme_ios” )
local myleftImage = {“slider-left.png”,100,0, 100}
local myrightImage = {“slider-right.png”,100,0, 100}
local myfillImage = {“slider-fill.png”,100,0, 800}
local mymaskImage = {“slider-mask.png”,100,100, 900}
local myhandleImage = {“slider-handle.png”,105,0, 105}

local AlphaSlider
local function createAlphaSlider()

alphaSlider = widget.newSlider{
width=alphaSlider_width,
height=toolbar_button_height,
value=100,
leftImage = myleftImage,
rightImage = myrightImage,
fillImage = myfillImage,
maskImage = mymaskImage,
handleImage = myhandleImage,
callback=sliderListener
… [import]uid: 49426 topic_id: 24883 reply_id: 102311[/import]