about listbox handlevent

Login to reply to this topic.
Mon, 2005-08-22 07:06
Joined: 2005-08-04
Forum posts: 27
hello all

i have implemented CAknSingleStyleListBox type listbox and HandleListBoxEventL() for the listbox event. now i can print the message using

iEikonEnv->InfoMsg(_L("Item1 is selected"));

now i want to know how can i go other view instend of iEikonEnv->InfoMsg(_L("Item1 is selected")). i have implemented HandleListBoxEventL() in my MyContainer() class and i have the coressponding MyView().

i have two views only.

in MyAppui() class i have created the view objects (2 objects) and the code is

void CEmailExpressAppUi::ConstructL()
    {
    BaseConstructL(EAknEnableSkin);

   iAppView = CEmailExpressView::NewL();
   iAppView1 = CEmailExpressView::NewL();
   AddViewL(iAppView);   
   AddViewL(iAppView1);   
   SetDefaultViewL(*iAppView);   
  }

now in i want to go iAppView1 by clicking "OK" instend of iEikonEnv->InfoMsg(_L("Item1 is selected")).

how can i do this??

thanks

bashar

Mon, 2005-08-22 07:22
Forum Nokia Champion
Joined: 2004-05-26
Forum posts: 732
Re: about listbox handlevent
STATIC_CAST(CYourAppUi*, iAvkonAppUi)->ActivateLocalViewL( TUid::Uid( EYourViewId ));

Mon, 2005-08-22 09:54
Joined: 2005-08-04
Forum posts: 27
Re: about listbox handlevent
hello vin2ktalks

many many thanks.

it is working nicely.

bashar

  • Login to reply to this topic.