Search code examples
c++formsbuttonevent-handlingbada

bada Programming - Button event handler


I'm new to bada programming. I have a question that is, is it possible to allow the button event handler in bada to bring up another form? If so, how do I go about doing that? Thank you so much in advance!


Solution

  • make one controller, which can act as a form manager, when you press button and call OnActionPerformed and do pFormMgr->SendUserEvent(FormMgr::FORM_ID_YOU_WANT_TO_CALL, null); this will call OnUserEventReceivedN in your form manager. Now, to call your form do,

    NewForm* pNewForm = new NewForm();
    pNewForm ->Construct();
    pFrame->AddControl(*pNewForm );
    
    pFrame->SetCurrentForm(*pNewForm );
    pFrame->RequestRedraw();