Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Widget Button No Longer Working
Started by nglenister Mar 14 2013 11:52 AM

2 replies to this topic
widget button
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

nglenister

[GLOBAL: userInfoPane.html]
nglenister
  • Enthusiast

  • 38 posts
  • Corona SDK

Hi all,

 

I've updated to the lastest build of the SDK and the button widgets now seem to be broken. I've checked the lastest docs and it seems that nothing much has changed, anyone know if it's something I've done or if it's a bug in the daily builds? Here is what I have?

 

 

soundButtonOn = widget.newButton{
        id = "btn001",
        default = "assets/img/buttons/soundBtnOff_off.png",
        over = "assets/img/buttons/soundBtnOff_on.png",
        left = midX - 65,
        label = "",
        width = 50, height = 50,
        onEvent = onSoundBtnEvent
    }

 

 

The result is the default grey button with rounded corners. The button event doesn't work (clicking on the button does nothing) and there are now errors in debug.
 
Thanks,
 
Neil


[TOPIC: post.html]
#2

Naomi

[GLOBAL: userInfoPane.html]
Naomi
  • Corona Geek

  • 2,303 posts
  • Corona SDK

Hey, @nglenister, the widget has been updated to v2.0 as of daily build 1034.  You might want to take a look at the following:

 

http://www.coronalabs.com/blog/2013/02/22/widget-2-0-is-here-bam/

 

http://docs.coronalabs.com/daily/api/library/widget/index.html

 

http://docs.coronalabs.com/daily/api/library/widget/migration.html

 

Naomi



[TOPIC: post.html]
#3

nglenister

[GLOBAL: userInfoPane.html]
nglenister
  • Enthusiast

  • 38 posts
  • Corona SDK

Hey, @nglenister, the widget has been updated to v2.0 as of daily build 1034.  You might want to take a look at the following:

 

http://www.coronalabs.com/blog/2013/02/22/widget-2-0-is-here-bam/

 

http://docs.coronalabs.com/daily/api/library/widget/index.html

 

http://docs.coronalabs.com/daily/api/library/widget/migration.html

 

Naomi

 

Thanks! That's exactly what I needed :)!




[topic_controls]
[/topic_controls]