<pre class="code">
result
testMainForm::OnInitializing(void)
{
result r = E_SUCCESS;
// TODO:
// Add your initialization code here
// Setup back event listener
SetFormBackEventListener(this);
__pButtonOK = static_cast<Button*>(GetControl(L"IDC_BUTTON_OK"));
__pEditarea2 = new EditArea();
__pEditarea2->Construct(Rectangle(50,100,400,150));
__pEditarea2->AddTextEventListener(*this);
AddControl(__pEditarea2);
__pLabel = static_cast<Label*>(GetControl(L"IDC_LABEL1"));
if (__pButtonOK != null)
{
__pButtonOK->SetActionId(ID_BUTTON_OK);
__pButtonOK->AddActionEventListener(*this);
}
if(__pEditarea1)
{
__pEditarea1->AddActionEventListener(*this);
}
return r;
}
void
testMainForm::checkTest(void) {
// when "__pButtonOK" is clicked.
String str;
str = __pEditarea2->GetText(); // number
__pLabel->SetText("test number : " + str );
}
</pre>
When I click "__pButtonOK"(Okay Button) after writing number in __pEditArea2 and than clicking "done" , I cannot see the number in label.
But, I can see the number written first in label when I click "done"(EditArea) again.
My log message prints some message like this.
------------------ log ------------------------
11-19 17:28:51.335 : INFO / driving5 ( 5707 : 5707 ) : virtual void driving5MainForm::OnActionPerformed(const Tizen::Ui::Control &, int)(197) > OK Button is clicked!
11-19 17:28:53.085 : ERROR / Tizen::Ui ( 5707 : 5707 ) : bool Tizen::Ui::_Control::IsVisible() const(2943) > [E_SYSTEM] This control should be attached to the main tree.
11-19 17:28:53.105 : ERROR / Tizen::Graphics ( 5707 : 5707 ) : result Tizen::Graphics::_Text::TextObject::SetBounds(const Tizen::Graphics::FloatRectangle&)(1132) > [E_OUT_OF_RANGE] The given rectangle(width:-24.000000,height:-8.000000) is out of range.
11-19 17:28:53.115 : ERROR / Tizen::Ui ( 5707 : 5707 ) : bool Tizen::Ui::_Control::IsVisible() const(2943) > [E_SYSTEM] This control should be attached to the main tree.
11-19 17:28:53.115 : ERROR / Tizen::Ui ( 5707 : 5707 ) : bool Tizen::Ui::_Control::IsVisible() const(2943) > [E_SYSTEM] This control should be attached to the main tree.
11-19 17:28:53.115 : ERROR / Tizen::Ui ( 5707 : 5707 ) : bool Tizen::Ui::_Control::IsVisible() const(2943) > [E_SYSTEM] This control should be attached to the main tree.
11-19 17:28:53.115 : ERROR / Tizen::Ui ( 5707 : 5707 ) : bool Tizen::Ui::_Control::IsVisible() const(2943) > [E_SYSTEM] This control should be attached to the main tree.
11-19 17:28:53.115 : ERROR / Tizen::Ui ( 5707 : 5707 ) : bool Tizen::Ui::_Control::IsVisible() const(2943) > [E_SYSTEM] This control should be attached to the main tree.
11-19 17:28:54.095 : ERROR / Tizen::Ui ( 5707 : 5707 ) : virtual bool Tizen::Ui::_KeyEventManagerImpl::PublicEventListener::OnKeyPressed(const Tizen::Ui::_Control&, const Tizen::Ui::_KeyInfo&)(66) > [E_SYSTEM] System error occurred.
11-19 17:28:54.095 : ERROR / Tizen::Base::Collection ( 5707 : 5707 ) : virtual Tizen::Base::Object* Tizen::Base::Collection::LinkedList::GetAt(int)(256) > [E_OUT_OF_RANGE] The index(1) MUST be greater than or equal to 0, and less than the number of elements(1).
11-19 17:28:54.095 : ERROR / Tizen::Base::Collection ( 5707 : 5707 ) : virtual Tizen::Base::Object* Tizen::Base::Collection::LinkedList::GetAt(int)(256) > [E_OUT_OF_RANGE] The index(1) MUST be greater than or equal to 0, and less than the number of elements(1).
11-19 17:28:54.155 : ERROR / Tizen::Ui ( 5707 : 5707 ) : virtual bool Tizen::Ui::_KeyEventManagerImpl::PublicEventListener::OnKeyReleased(const Tizen::Ui::_Control&, const Tizen::Ui::_KeyInfo&)(99) > [E_SYSTEM] System error occurred.
11-19 17:28:55.145 : ERROR / Tizen::Ui::Animations ( 5707 : 5707 ) : virtual Tizen::Ui::Animations::VisualElement::~VisualElement()(87) > [E_INVALID_STATE] should be called Destroy() for deallocating the VisualElement.
11-19 17:28:55.155 : ERROR / Tizen::Ui ( 5707 : 5707 ) : result Tizen::Ui::_UiEvent::ProcessEvent(const Tizen::Ui::_Control&, bool&)(132) > [E_SYSTEM] System error occurred.
I don't know the reason.
Please let me know,
Best regards,
Jenny