Display another View when a user select an item from CAknSingleStyleListBox

Posted on 2005-04-17
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
    LVL 5

    Expert Comment


    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

    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
    LVL 5

    Accepted Solution


    You can get the instance of appui from the following statement

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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: Create Mobile App Prototypes with Adobe XD

    This is a project-based course: we go through all the steps of creating a prototype from start to finish, using all the tools and features currently available in Adobe XD. You can complete the course in less than a day, plus all project files and fonts are included.

    With Windows Embedded Handheld, called Windows Mobile, Microsoft re-designed the user interface. The Start Icon moved down to the bottom, inside the menu bar area.   If you need to hide the Start Icon and/or the SIP (soft input panel, softwar…
    Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator ( This article presumes a wor…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now