[Webinar] Learn how to a build a cloud-first strategyRegister Now


Display another View when a user select an item from CAknSingleStyleListBox

Posted on 2005-04-17
Medium Priority
Last Modified: 2013-12-27

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
Question by:jijojac
  • 2

Expert Comment

ID: 13820933

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

TVwsViewId id(KUidApp, KUidView);

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

Author Comment

ID: 13821765
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

Accepted Solution

dennis_george earned 2000 total points
ID: 13855817

You can get the instance of appui from the following statement

iAppUi  = STATIC_CAST(CMyAppUi*, iEikonEnv->EikAppUi());


Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to setup the internet connectivity on Windows Mobile Emulator.   I assume that you already have Microsoft Visual Studio, Microsoft Windows Mobile SDK's and the emulator installed. The emulator is available with Visual Studi…
If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month20 days, 9 hours left to enroll

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question