How to Open new static page useing button click in Bada

139 Views Asked by At

I have put image in header with button and click on button then open a new window.

1

There are 1 best solutions below

0
Peyman Irani On

You should construct your new window (exactly form) some where in your code then attack an event listener to your header button, then into your listener code block use your application frame like this:

Frame *pFrame = Application::GetInstance()->GetAppFrame()->GetFrame();

then use this method to make your Form active and visible:

result r;
r = pFrame->AddControl(*pForm1); //pForm1 is your constructed new form
  pFrame->SetCurrentForm(*pForm1);
  pForm1->RequestRedraw();