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.
local redButton = widget.newButton{
defaultColor = {255,0,0},
overColor = {255,0,0},
strokeWidth = 0,
strokeColor = {255,0,0},
cornerRadius = 0,
width = 30,
height = 30,
onRelease = redButton\_Click
}
redButton.x = storyboard.globals.leftX + 140
redButton.y = storyboard.globals.topY + 205
The button still has a corner radius and still has a stoke and the over colour is a dark green.
Dave [import]uid: 117617 topic_id: 31634 reply_id: 331634[/import]