im sorry for that, here is my complete code
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- -- Your code here widget = require( "widget" ); local \_W = display.contentWidth; local \_H = display.contentHeight; \_DEFAULT\_FONT = {NAME = "Calibri", SIZE = 18 }; function createButton(\_param) local \_button = widget.newButton{ id=\_param.ID, isEnabled=false, width = \_param.W, height = \_param.H, defaultFile = \_param.DEFAULTFILE, overFile = \_param.OVERFILE, label = \_param.LABEL, labelAlign = \_param.LABELALIGN, labelColor= \_param.LABELCOLOR, font = \_param.FONTNAME, fontSize = \_param.FONTSIZE, emboss = \_param.EMBOSS }; \_button.x = \_param.X; \_button.y = \_param.Y; return \_button; end; local function buttonTouchEvent( event ) local t = event.target; local stage = display.getCurrentStage(); if t.id=="b1" then if event.phase == "ended" then widgetobj.bLalala2:setEnabled(false); native.showAlert( "Corona", "b1 pressed.", { "OK" }, function() end ) end; elseif t.id=="b2" then if event.phase == "ended" then native.showAlert( "Corona", "b2 pressed.", { "OK" }, function() end ) end; end; end; widgetobj= {}; widgetobj.bLalala1 = createButton( {X = \_W \* 0.85, Y = 0, W = 238, H=44, FONT = \_DEFAULT\_FONT.NAME, FONTSIZE = \_DEFAULT\_FONT.SIZE, DEFAULTFILE = "butt\_mode1.png", OVERFILE = "butt\_mode2.png", LABEL = "b1", ID="b1", LABELALIGN= "center", LABELCOLOR={ default={ 1, 1, 1 }, over={ 0, 0, 0, 0.5 }}, EMBOSS=true} ); widgetobj.bLalala1:addEventListener("touch", buttonTouchEvent); widgetobj.bLalala2 = createButton( {X = \_W \* 0.85, Y = 0, W = 238, H=44, FONT = \_DEFAULT\_FONT.NAME, FONTSIZE = \_DEFAULT\_FONT.SIZE, DEFAULTFILE = "butt\_mode1.png", OVERFILE = "butt\_mode2.png", LABEL = "b2", ID="b2", LABELALIGN= "center", LABELCOLOR={ default={ 1, 1, 1 }, over={ 0, 0, 0, 0.5 }}, EMBOSS=true} ); widgetobj.bLalala2:addEventListener("touch", buttonTouchEvent); widgetobj.bLalala1.x = display.contentCenterX; widgetobj.bLalala1.y = 50 widgetobj.bLalala2.x = display.contentCenterX; widgetobj.bLalala2.y = 100