Hi,
This is what I’ve tried to do but this throws a runtime error SetEmbossColor a nil value.
I’ve tried putting the highlight and shadow values in the Options table but they just get ignored.
local hangerButtonOptions = {
label = “button”,
onRelease = gotoHanger,
font = themeFont,
fontSize = 14,
labelColor = { default={ 1, 1, 1 }, over={ 1, 1, 1, 0.5 } },
emboss = true,
--properties for a rounded rectangle button…
shape=“roundedRect”,
width = 100,
height = 26,
cornerRadius = 6,
fillColor = { default={ 0.85, 0.2, 0.13, 1 }, over={ 1, 0.1, 0.7, 0.4 } },
strokeColor = { default={ 1, 1, 1, 1 }, over={ 0.8, 0.8, 1, 1 } },
strokeWidth = 2,
isVisible = true
}
hangerButton = widget.newButton( hangerButtonOptions) hangerButton.x = display.contentCenterX hangerButton.y = display.contentCenterY + 130 hangerButton:setLabel( “HANGER” )
embossColour =
{
highlight = { r=0.85, g=0.2, b=0.13 },
shadow = { r=0, g=0, b=0 }
}
hangerButton:setEmbossColor( embossColour )
Any advice?
Dean