I am pretty new to cocos2d-x and have understood that textfields with background etc is not something you should take for granted I have got everything to work with editbox but i have not found a way to use some sort of padding for the input text.
The only solution i could think of was to create a sprite/menubuttonimage and place it next to the editbox.
Question 1: Is there a better way to do this?
Question 2: What function should i use to focus the editbox and bring up the keyboard when for example touching a button cause i want the whole input area to be touchable?
What i ment about padding is the margin of the text inside the editbox if i for example would want the text to be margined 10 pixels from the left to the right.