Hi,
My Form dosen't get event OnFormBackRequested().
result Mainform::OnInitializing(void) { result r = E_SUCCESS; AddTouchEventListener(*this); Footer* pFooter = GetFooter(); pFooter->SetStyle(FOOTER_STYLE_BUTTON_TEXT); ////////////////// footer items // back button pFooter->SetBackButton(); // Add back button. // ---- item: settings FooterItem footerItem_settings; footerItem_settings.Construct(ID_OPTIONMENU_SETTINGS); footerItem_settings.SetText("Settings"); pFooter->AddItem(footerItem_settings); // ---- sounds FooterItem footerItem_sounds; footerItem_sounds.Construct(ID_OPTIONMENU_SOUNDS); footerItem_sounds.SetText("Sounds"); pFooter->AddItem(footerItem_sounds); // // pFooter->AddActionEventListener(*this); ... // It is never fired. void Mainform::OnFormBackRequested(Tizen::Ui::Controls::Form & source) { LOG("back button pressed"); this->iListener->onExitApk(true); }
I get events for every foooter items but not back button.
My form is loadded from xml file:
... <Form id="MainForm"> <property backgroundColor="#8080FF" backgroundOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="true" translucentHeader="FALSE" translucentIndicator="true"/> <layout mode="Portrait" style="FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> <layout mode="Landscape" style="FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> </Form> <Footer> <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_TAB" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="true"/> <itemSet/> </Footer> ...
All seems to be ok however back event dosen't come.
Regards
sland