Keep a previous text on Tizen CCEditBox.

This commit is contained in:
Lee, Jae-Hong 2013-05-28 20:43:47 +09:00
parent 5031aa1fd3
commit c20e4f3700
3 changed files with 4 additions and 2 deletions

View File

@ -129,7 +129,7 @@ void CCOspForm::OnTextValueChangeCanceled(const Tizen::Ui::Control& source)
} }
void 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_pfEditTextCallback = pfEditTextCallback;
m_pCtx = pCtx; m_pCtx = pCtx;
@ -152,6 +152,7 @@ CCOspForm::ShowKeypad(KeypadStyle keypadStyle, KeypadInputModeCategory keypadCat
__pKeypad->SetTextPredictionEnabled(bTextPrediction); __pKeypad->SetTextPredictionEnabled(bTextPrediction);
__pKeypad->SetSingleLineEnabled(bSingleLineEnabled); __pKeypad->SetSingleLineEnabled(bSingleLineEnabled);
__pKeypad->SetText(String(pMessage));
__pKeypad->SetShowState(true); __pKeypad->SetShowState(true);
__pKeypad->Show(); __pKeypad->Show();
} }

View File

@ -54,7 +54,7 @@ public:
virtual void OnTextValueChanged(const Tizen::Ui::Control& source); virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
virtual void OnTextValueChangeCanceled(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(); void CloseKeypad();
Tizen::Ui::Controls::Keypad*__pKeypad; Tizen::Ui::Controls::Keypad*__pKeypad;

View File

@ -315,6 +315,7 @@ void CCEditBoxImplTizen::openKeyboard()
} }
((CCOspForm *)CCOspApplication::GetInstance()->getCCOspForm())->ShowKeypad( ((CCOspForm *)CCOspApplication::GetInstance()->getCCOspForm())->ShowKeypad(
m_strText.c_str(),
keypadStyle, keypadStyle,
keypadCategory, keypadCategory,
bSingleLineEnabled, bSingleLineEnabled,