Link to home
Start Free TrialLog in
Avatar of jijojac
jijojac

asked on

Display another View when a user select an item from CAknSingleStyleListBox


I need a help urgently. I am using Borland BuilderX for C++ Symbian programming. The program is for  a Chat Application and i want to read the inbox so not using Java. Let me explain what i need. The first View is with a CAknSingleStyleListBox and when ever an SMS comes it will be added to the list as an Item. When the user select the listbox item another View should open with the message in it and menu for reply, delete and all.

I am using Container class... so i feel difficulty to Change to View. I need help in such a way that i can change view and later return to this main view when a back button is pressed...

So my final question is Just "How can i display another View when an item in list is clicked.". I am using View->Container architecture....

Any reply which leads to a solution will get Max points and grade A.

Please make it fast... Thanks in Advance
Avatar of dennis_george
dennis_george
Flag of India image

Hi,

I assume that you already created views in your appui class.... So to activate another view you have to use       

TVwsViewId id(KUidApp, KUidView);
iAppUi->ActivateViewL(id);

where
KUidApp  --> Application UID
KUidView --> View UID
iAppUi     --> Instance of AppUI class

Call this sequence in HandleListBoxEventL routine of your list view.....

Hope this might help you
Dennis
Avatar of jijojac
jijojac

ASKER

Yes i have created views in appui class. I know how to change view from another view,,, but the problem here is that the view i created has created a container and the display of list box is done in that container and i am not getting iAppUi instance in this container. The problem is that how can i get this appui instance from a container class
ASKER CERTIFIED SOLUTION
Avatar of dennis_george
dennis_george
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial