Widgets background rect's not working

I just copied this code from the docs (http://docs.coronalabs.com/daily/api/library/widget/newButton.html) and the only thing I got was the text ‘Shape’ and not background image. Was the background rect feature removed?

local widget = require( "widget" ) -- Function to handle button events local function handleButtonEvent( event ) if ( "ended" == event.phase ) then print( "Button was pressed and released" ) end end -- Create the widget local button1 = widget.newButton { label = "button", onEvent = handleButtonEvent, emboss = false, --properties for a rounded rectangle button... shape="roundedRect", width = 200, height = 40, cornerRadius = 2, fillColor = { default={ 1, 0, 0, 1 }, over={ 1, 0.1, 0.7, 0.4 } }, strokeColor = { default={ 1, 0.4, 0, 1 }, over={ 0.8, 0.8, 1, 1 } }, strokeWidth = 4 } -- Center the button button1.x = display.contentCenterX button1.y = display.contentCenterY -- Change the button's label text button1:setLabel( "Shape" )

Hi @jeremyapplebaum12,

Shape-based buttons are not yet available to Starter users, but they will be in the next public release which is coming soon. The code you copied is from the “daily” set of docs, meaning that those docs reflect features available in daily builds.

Take care,

Brent

No worries, thanks for getting back to me. Due to time constants I just wrote my own.

Hi @jeremyapplebaum12,

Shape-based buttons are not yet available to Starter users, but they will be in the next public release which is coming soon. The code you copied is from the “daily” set of docs, meaning that those docs reflect features available in daily builds.

Take care,

Brent

No worries, thanks for getting back to me. Due to time constants I just wrote my own.