EditBox input to the change of value, will be double!
Testing machine: glory 6
Void GameBank: : editBoxTextChanged (cocos2d: : UI: : EditBox * EditBox, const STD: : string& The text)
{
If (m_editStore==editBox)
{
Int iCnt=atoi (text. C_str ());
If (iCnt & gt; 100)
{
M_editStore - & gt; SetText (" 100 ");
M_editStore - & gt; SetFocusEnabled (false);
}
return;
}
}
CodePudding user response:
A warrior know this problem?For help?
Thank you very much!
CodePudding user response:
For help?Pray god to take!
CodePudding user response:
Can not solve the problem??????There are a great god know not?
CodePudding user response:
How do you achieve the keyboard screen display? Warrior to give directionsCodePudding user response:
Occasionally I met the word mobile ghosting is how to solve this, pleaseCodePudding user response:
In the first, the editbox fontname and fontsize attributes are set up, even if you don't also want to use setfontname (" "); But don't not to set, if still won't do you need to change cocos2dx kernel code, find the place you are editing in editbox, have set up the pos function, more than one line