Widget newButton only showing text?

See the simple code below in the screen shot. The button is showing up as text only. Any ideas?

ScreenShot2014-04-30at111326AM.png

Hi @corona437,

When you create widgets, they detect the device you’re running on and the styles are affected accordingly. By default, on iOS7, buttons do not have any background element.

You can change this by styling buttons with custom parameters like images. Please see the documentation on this here:

http://docs.coronalabs.com/api/library/widget/newButton.html

Best regards,

Brent

I apologize for the newness of the questions.

But just so I can get this straight. I have to design my own buttons now? There is no default button in Corona SDK?

Thanks

Widgets have a default styling to match the OS you are running on.  The reason for this is so that your button’s look like native buttons on the OS.  In this case, iOS 7 buttons are Text only.  They have no chrome.

The widget.newButton() API Call provides you many ways to construct buttons, from providing your own default and tapped state images, to 9 slice style.  You also have the option to tell your app to use the older iOS 3-6 style buttons by setting the theme.  See the widget.setTheme()  API Call.

Rob

Hi @corona437,

When you create widgets, they detect the device you’re running on and the styles are affected accordingly. By default, on iOS7, buttons do not have any background element.

You can change this by styling buttons with custom parameters like images. Please see the documentation on this here:

http://docs.coronalabs.com/api/library/widget/newButton.html

Best regards,

Brent

I apologize for the newness of the questions.

But just so I can get this straight. I have to design my own buttons now? There is no default button in Corona SDK?

Thanks

Widgets have a default styling to match the OS you are running on.  The reason for this is so that your button’s look like native buttons on the OS.  In this case, iOS 7 buttons are Text only.  They have no chrome.

The widget.newButton() API Call provides you many ways to construct buttons, from providing your own default and tapped state images, to 9 slice style.  You also have the option to tell your app to use the older iOS 3-6 style buttons by setting the theme.  See the widget.setTheme()  API Call.

Rob