I am trying to have just a plain square button in red with no border etc… but I can’t seem to get it right. It’s like Corona is ignoring my setting (or am not doing it right).
I know I could just draw a red square and add a touch listener but I like widget buttons as they are usually hassle free.
Hey, Dave, I was curious, so I copied and pasted your code to my project (at the bottom of scene:createScene function), and a perfectly square red button appeared:
I didn’t build it for device. I just dropped the code into my current project, and I see the perfect red square on the center, when viewed on simulator. I didn’t set any theme – all I do is to require widget at the top of the code. And… I’m using daily build 925 at the moment.
Do you see perfect square on simulator, and then it turns into what you screen captured when displayed on device?
It could be a bug that you may want to report with a simple project with the bit of code that shows the issue.
Just in case it was some weird interaction with storyboard I plopped your chunk of code into one of the scenes on my project and when I went there, another perfect red square sitting there.
I’ll echo Naomi’s question – are you seeing the problem on the simulator or device? If the latter, which device?
Jay [import]uid: 9440 topic_id: 31634 reply_id: 126406[/import]
Hey, Dave, glad to hear you’ve sorted this out. That’s interesting, and not a big surprise. I’ve found a few (and similar) unexpected idiosyncrasies when using storyboard too.
Hey, Dave, I was curious, so I copied and pasted your code to my project (at the bottom of scene:createScene function), and a perfectly square red button appeared:
I didn’t build it for device. I just dropped the code into my current project, and I see the perfect red square on the center, when viewed on simulator. I didn’t set any theme – all I do is to require widget at the top of the code. And… I’m using daily build 925 at the moment.
Do you see perfect square on simulator, and then it turns into what you screen captured when displayed on device?
It could be a bug that you may want to report with a simple project with the bit of code that shows the issue.
Just in case it was some weird interaction with storyboard I plopped your chunk of code into one of the scenes on my project and when I went there, another perfect red square sitting there.
I’ll echo Naomi’s question – are you seeing the problem on the simulator or device? If the latter, which device?
Jay [import]uid: 9440 topic_id: 31634 reply_id: 126406[/import]
Hey, Dave, glad to hear you’ve sorted this out. That’s interesting, and not a big surprise. I’ve found a few (and similar) unexpected idiosyncrasies when using storyboard too.