Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
How to use input box and buttons in gideros? — Gideros Forum

How to use input box and buttons in gideros?

Sush19Sush19 Member
edited August 2013 in General questions
Hello all,
I'm trying to use input box and button but I'm getting error. Can anyone help me out.
The code i"m using is:
        local inputbox = InputBox.new(150,20,150,40)
	inputbox:setText("")
	inputbox:SetKeyBoard(keyboard)
	inputbox:setBoxColors(0xefefef,0xff2222,0,1)
	inputbox:setActiveBoxColors(0xff5555,0xff2222,0,1)
	stage:addChild(inputbox)
 
        local button = Button.new(upp, down)
	button:setPosition(200, 120)
	stage:addChild(button)
the error I'm getting is:

attempt to index global 'InputBox' (a nil value) stack traceback:
attempt to index global 'Button' (a nil value) stack traceback:

Comments

Sign In or Register to comment.