mirror of https://github.com/axmolengine/axmol.git
Keep a previous text on Tizen CCEditBox.
This commit is contained in:
parent
5031aa1fd3
commit
c20e4f3700
|
@ -129,7 +129,7 @@ void CCOspForm::OnTextValueChangeCanceled(const Tizen::Ui::Control& source)
|
|||
}
|
||||
|
||||
void
|
||||
CCOspForm::ShowKeypad(KeypadStyle keypadStyle, KeypadInputModeCategory keypadCategory, bool bSingleLineEnabled, bool bTextPrediction, int nMaxLength, EditTextCallback pfEditTextCallback, void* pCtx)
|
||||
CCOspForm::ShowKeypad(const char* pMessage, KeypadStyle keypadStyle, KeypadInputModeCategory keypadCategory, bool bSingleLineEnabled, bool bTextPrediction, int nMaxLength, EditTextCallback pfEditTextCallback, void* pCtx)
|
||||
{
|
||||
m_pfEditTextCallback = pfEditTextCallback;
|
||||
m_pCtx = pCtx;
|
||||
|
@ -152,6 +152,7 @@ CCOspForm::ShowKeypad(KeypadStyle keypadStyle, KeypadInputModeCategory keypadCat
|
|||
|
||||
__pKeypad->SetTextPredictionEnabled(bTextPrediction);
|
||||
__pKeypad->SetSingleLineEnabled(bSingleLineEnabled);
|
||||
__pKeypad->SetText(String(pMessage));
|
||||
__pKeypad->SetShowState(true);
|
||||
__pKeypad->Show();
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ public:
|
|||
virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
|
||||
virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
|
||||
|
||||
void ShowKeypad(Tizen::Ui::Controls::KeypadStyle keypadStyle, Tizen::Ui::Controls::KeypadInputModeCategory keypadCategory, bool bSingleLineEnabled, bool bTextPrediction, int nMaxLength, EditTextCallback pfEditTextCallback, void* pCtx);
|
||||
void ShowKeypad(const char* pMessage, Tizen::Ui::Controls::KeypadStyle keypadStyle, Tizen::Ui::Controls::KeypadInputModeCategory keypadCategory, bool bSingleLineEnabled, bool bTextPrediction, int nMaxLength, EditTextCallback pfEditTextCallback, void* pCtx);
|
||||
void CloseKeypad();
|
||||
|
||||
Tizen::Ui::Controls::Keypad*__pKeypad;
|
||||
|
|
|
@ -315,6 +315,7 @@ void CCEditBoxImplTizen::openKeyboard()
|
|||
}
|
||||
|
||||
((CCOspForm *)CCOspApplication::GetInstance()->getCCOspForm())->ShowKeypad(
|
||||
m_strText.c_str(),
|
||||
keypadStyle,
|
||||
keypadCategory,
|
||||
bSingleLineEnabled,
|
||||
|
|
Loading…
Reference in New Issue