Languages

Menu
Sites
Language
Button Not Responding

Hi,

I am creating an app where there are three buttons. On debugging i saw that control is going to  OnInitializing(void) on the corresponding form.
But after that  OnActionPerformed(const Tizen::Ui::Control& source, int actionId)  is not getting called as a result of which i am not able to handle my click events. Any suggestion would be really appreciable.
 
Thanks in advance.

 

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

2 Replies
talari praveen kumar
Hi please refer to the sample at TizenNative->Template->formbased->withscenemanager. This has the code how to handle the click events
Siddharth Singh
It will be good if u can paste ur code here. Anyways sample button code is like : result ButtonSample::OnInitializing(void) { pButton = new Button(); pButton->Construct(Rectangle(50, 50, 200, 200), L"Button"); pButton->SetActionId(ID_BUTTON); pButton->AddActionEventListener(*this); AddControl(pButton); } void ButtonSample::OnActionPerformed(const Control& source, int actionId) { switch (actionId) { case ID_BUTTON: { //Add ur action code here .... } break; } }