Home > other >  For cocos2d: : UI: : EditBox ghosting problem under the Android system
For cocos2d: : UI: : EditBox ghosting problem under the Android system

Time:09-22

Cocos2d: : UI: : EditBox ghosting problem under Android
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 directions

CodePudding user response:

Occasionally I met the word mobile ghosting is how to solve this, please

CodePudding 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
  • Related